-
Notifications
You must be signed in to change notification settings - Fork 18k
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
RPM: Send on Periph and receive on vehicle #26508
Conversation
Looking for approval of approach so we can merge the DSDL change. |
Tested with SITL Universal periph. Periph using SITL RPM backed with sensor ID 5. Receiving on vehicle with DroneCAN backend with the same senor ID. Tested health reporting by changing the min quality param on periph such that its sensor goes unhealthy. The local sensor correctly follows this. |
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.
just the int16, can be merged after that, ping on code_review
thanks!
… `sitl_periph_universal`
This adds support for a new DroneCAN rpm message, dronecan/DSDL#53
It is sent on periph by setting a message rate with
RPM_MSG_RATE
and alocating a sensor ID withRPMx_DC_SEND_ID
. SetHAL_PERIPH_ENABLE_RPM_STREAM
to enable in the build.On the vehicle side set
RPMx_TYPE
to 7 andRPMx_DC_ID
to match the send ID you want to receive.Its a bit upsetting having two params for this in RPM, really we need per-instance params so you would only see the
RPMx_DC_ID
on the DroneCAN backend.This updates the DroneCAN DSDL to point at my branch, we will need to do the shuffle to merge the DSDL PR first.