-
Notifications
You must be signed in to change notification settings - Fork 0
Development #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mbuckton
wants to merge
43
commits into
main
Choose a base branch
from
development
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Development #4
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
163c05a
cleanup
mbuckton e10eca7
add tests and doc
mbuckton 01175af
fix the tests
mbuckton 8efb54e
spam the link
mbuckton 6700fbc
Merge branch 'development' of https://github.com/Maps-Messaging/canbu…
mbuckton eef23a0
feat(canbus): Merge to 1 canbus project
mbuckton f556154
docs(canbus): Add Raspberry Pi CAN Bus setup guide for dual MCP2515 H…
mbuckton 0e7a101
refactor(canbus): Simplify and enhance `CanId` and `CanIdBuilder` by …
mbuckton 528d581
test(canbus): Add tests for `CanIdBuilder` validation and priority ha…
mbuckton 43b9c18
refactor(canbus): Replace `CanFrame` class with `record`, update refe…
mbuckton eee2be6
feat(canbus): Add `name` property to N2kMessageParser envelope
mbuckton 06e0cf2
Merge remote-tracking branch 'origin/development' into development
mbuckton 05a4450
feat(canbus): Add `name` property to N2kMessageParser envelope
mbuckton 8a69a5c
refactor(n2k): Rename `decoded` to `packet` and update schema, tests,…
mbuckton b36187b
added deepwiki badge
krital 85f2aaf
fix(api) reduce any issues with accessing the device
mbuckton 8953d5e
refactor(canbus): Move `Vcan0ReadWriteDemo` to `app` package, update …
mbuckton c1d117b
test(canbus): Add tests for `CanLoad` and `Vcan0ReadWriteDemo`, adjus…
mbuckton b95c9d2
test(canbus): Add unit tests for `JnaInterfaceIndexResolver` to cover…
mbuckton cbd3d6a
refactor(canbus): Extract `validateWriteArgs` method for argument val…
mbuckton f9252f5
Merge pull request #2 from Maps-Messaging/canbus-api-fix
mbuckton 0aa3c63
feat(canbus-events): Add CANaerospace schema, parser implementation, …
mbuckton 7bbb321
feat(canbus): Add systemd service files to enable and configure can0 …
mbuckton 3dbd385
Merge pull request #3 from Maps-Messaging/canbus-api-fix
mbuckton 623903e
feat(canaerospace): Refactor schema registry to improve identifier lo…
mbuckton ebac563
test(canbus-events): Add round-trip parser unit tests for CANaerospac…
mbuckton 22ac4cf
test(canbus-events): Add round-trip parser unit tests for CANaerospac…
mbuckton 64231c9
feat(canaerospace): Implement `DataTypeCodec.encode` for schema-based…
mbuckton d9b01db
refactor(canbus): Optimize frame reading by introducing reusable buff…
mbuckton 449f4e1
feat(nmea2000): Add `FieldValueSource` interface and support for enco…
mbuckton 2d22507
Merge remote-tracking branch 'origin/development' into development
mbuckton 7261956
fix(api) expose the pack for a byte[]
mbuckton ffba607
Merge remote-tracking branch 'origin/development' into development
mbuckton fead556
feat(canbus): Add `SerialCanDevice` and SLCAN codec implementations w…
mbuckton 35592c0
feat(canbus): Add support for CAN FD frames and extend validation logic
mbuckton 351fcbc
feat(nmea2000): Extend NMEA database with definitions for Heartbeat a…
mbuckton 887bcd1
feat(nmea2000): Add ISO Request PGN (`59904`) with detailed field def…
mbuckton 912fc4e
feat(nmea2000): Add support for `STRING_LAU` field type and enhance f…
mbuckton 4e7f3dc
feat(canbus): Add `WaveshareUsbCanAStreamCodec` for encoding and deco…
mbuckton a507f99
Merge remote-tracking branch 'origin/development' into development
mbuckton 63c522c
test(canbus): Add unit tests for `WaveshareUsbCanAStreamCodec`
mbuckton 6eb1740
feat(canbus): Introduce `CanDevice` interface and update `SocketCanDe…
mbuckton 73b212e
feat(canbus): Add `getCanCapabilities` method to `CanDevice` and impl…
mbuckton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PDU type detection is incorrect for valid PDU2 PGNs with group-extension
0x00.isPdu1()currently infers type from PGN low byte, but PDU type is defined by PF (<=239vs>=240). For PF>=240and low byte0x00, this misclassifies PDU2 as PDU1 and breaksisBroadcast(),getDestinationAddressOrNull(), andgetGroupExtensionOrNull().🐛 Suggested fix (classify by PF, not PGN low byte)
public boolean isPdu1() { - return (pgn & BYTE_MASK) == 0; + int pduFormat = (pgn >> PDU_FORMAT_SHIFT) & BYTE_MASK; + return pduFormat <= PDU1_MAX_PF; } @@ public boolean isBroadcast() { - return isPdu2(); + return isPdu2() || destinationAddress == BROADCAST_ADDRESS; }🤖 Prompt for AI Agents