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

Freerb/242 update can drivers (#322) #339

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Freerb/242 update can drivers (#322) #339

wants to merge 2 commits into from

Conversation

BlakeFreer
Copy link
Contributor

  • Adds missing import

  • moves and removes unused files

  • Reimplement CAN

  • Adds message formatter

  • bk work

  • for review

  • simplify get and pop methods

  • remove unused import

  • Add comments to Pop and Get

  • Update headers

  • Rename veh to demo

  • Update scripts/cangen/cangen/templates/bus.h.jinja2

  • Add clang-format on

  • Explain optional unpacking

  • Revert to TxMessage concept


BlakeFreer and others added 2 commits November 29, 2024 12:59
* Adds missing import

* moves and removes unused files

* Reimplement CAN

* Adds message formatter

* bk work

* for review

* simplify get and pop methods

* remove unused import

* Add comments to Pop and Get

* Update headers

* Rename veh to demo

* Update scripts/cangen/cangen/templates/bus.h.jinja2

Co-authored-by: Samuel Parent <[email protected]>

* Add clang-format on

* Explain optional unpacking

* Revert to TxMessage concept

---------

Co-authored-by: Samuel Parent <[email protected]>
* Add extended frame support to CanMessage

* stm32 can driver, remove mutex on bus for now

* Merge to hpp

* Convert shared and stm mcal CMake libaries to Interface so they link properly

* Move Linux to Interface library, fix headers & CMake bindings

* atomic buffer

* Update Nucleo Docs for Demo/CAN and CANGEn docs

* remove unused imports

* Remove unused imports

* Abstract out AtomicBuffer and use in CAN bus.

* Rename Register function

* Add forware declare comment

* Inclusion guard

* feat: Move `pack` and `unpack`.

Moved out of templates / generated code into `shared/comms/can/msg.hpp`. Prevents redefinition if multiple `_messages.hpp` files exist (eg. Veh and Pt CAN)

* fix: Fix GetTimestamp calculation.

We should not multiply by `HAL_GetTickFreq()`. The `HAL_GetTick()` method "Provides a tick value in millisecond." according to the HAL guide UM 1905. Also, multiplying by freq would give the wrong units since its 1/second
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant