Skip to content
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

Bugfix for CAN Addressing Information #287

Merged
merged 15 commits into from
Oct 14, 2024

Conversation

mdabrowski1990
Copy link
Owner

Description

  • enable Normal Addressing with extended (29-bit) CAN ID
  • available other priority parameter values than 6 (0b110) for Normal Fixed and Mixed 29-bit Addressing

How Has This Been Tested?

  • review
  • unit and integration tests (special cases were added)

Process

I know the process and did my best to follow it

- Fixed Addressing Information implementation
- Fixed Addressing Information tests

Seems like `uds.can` and `tests,software_tests.can` are fully fixed
- fix CAN packet implementation for Normal Addressing
- restructure package - add depth, separate implementation for each bus
@mdabrowski1990 mdabrowski1990 linked an issue Oct 10, 2024 that may be closed by this pull request
@mdabrowski1990 mdabrowski1990 self-assigned this Oct 10, 2024
@mdabrowski1990 mdabrowski1990 added bug Something isn't working documentation Improvements or additions to documentation implementation Changes to code CAN Related to CAN specific implementation labels Oct 10, 2024
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (5eae5d9) to head (8a13903).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              main      #287    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           41        42     +1     
  Lines         2680      2743    +63     
  Branches       648       344   -304     
==========================================
+ Hits          2680      2743    +63     
Flag Coverage Δ
integration-tests 80.96% <73.97%> (+0.52%) ⬆️
integration-tests-branch 75.79% <62.32%> (+0.23%) ⬆️
unit-tests 100.00% <100.00%> (ø)
unit-tests-branch 100.00% <100.00%> (ø)
Files with missing lines Coverage Δ
uds/can/__init__.py 100.00% <100.00%> (ø)
uds/can/abstract_addressing_information.py 100.00% <100.00%> (ø)
uds/can/addressing_format.py 100.00% <100.00%> (ø)
uds/can/addressing_information.py 100.00% <100.00%> (ø)
uds/can/extended_addressing_information.py 100.00% <100.00%> (ø)
uds/can/first_frame.py 100.00% <100.00%> (ø)
uds/can/frame_fields.py 100.00% <100.00%> (ø)
uds/can/mixed_addressing_information.py 100.00% <100.00%> (ø)
uds/can/normal_addressing_information.py 100.00% <100.00%> (ø)
uds/packet/__init__.py 100.00% <100.00%> (ø)
... and 9 more

- Add tables with CAN ID creation for Normal Fixed and Mixed 29-bit addressings
- Specify that priority for these addressings might be different than 6
- added information for CAN Addressing information what CAN ID, Target Address, Source Address, Extension Address carry
- changed indentation
Copy link
Owner Author

@mdabrowski1990 mdabrowski1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mdabrowski1990 mdabrowski1990 merged commit a3cf879 into main Oct 14, 2024
61 checks passed
@mdabrowski1990 mdabrowski1990 deleted the extend-can-addressing-options branch October 14, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CAN Related to CAN specific implementation documentation Improvements or additions to documentation implementation Changes to code
Projects
None yet
2 participants