Skip to content

Add CAN FD high-speed baud rate support - #9

Open
PhilippBleimund wants to merge 3 commits into
jia-xie:mainfrom
PhilippBleimund:can_fd_baudrates
Open

Add CAN FD high-speed baud rate support#9
PhilippBleimund wants to merge 3 commits into
jia-xie:mainfrom
PhilippBleimund:can_fd_baudrates

Conversation

@PhilippBleimund

Copy link
Copy Markdown

Summary

Extends set_can_baud_rate to accept the new five CAN FD baud rate codes (5–9).

Changes

  • Adds CAN_FD_BAUD_RATE_CODES mapping codes 5–9 to their corresponding bit rates (2M–5M).
  • Updates the validation in set_can_baud_rate to accept codes from either CAN_BAUD_RATE_CODES or CAN_FD_BAUD_RATE_CODES.
  • persist flag for set_can_baud_rate since the motor has a limiting number of writes. Default is true so that existing implementations wont break.

Notes

  • Switching between can and can fd still requires multiple manual steps. The user needs to change the baudrate on the old bus but the parameter store needs to hapen on a new but with the respective change.

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