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

Canhub FMU add common sensor sets and uxrce-dds drivers #22408

Merged
merged 2 commits into from
Nov 19, 2023

Conversation

dirksavage88
Copy link
Contributor

Problem:

The canhub is an experimental platform with very few sensor sets enabled by default. Adding in common pressure, distance, optical flow, mag will allow interfacing with add-on sensors that extend the capability beyond the mr-canhubk3-adap board which includes IMU, SD card, compass, and RC + gps2 connectors.

Solution:

Add in common sensor sets. Also enable uxrce-dds client. I have tested the dds client to work over the GPS2 port on the ADAP board. There are several other serial ports on the base canhub board that could be used for uxrce-dds but will need to disable either gps or telem on those ports before attempting to run the driver. Additionally since this board includes many serial ports I've enabled the sf45 rotating lidar.

Alternative solutions:

Since the board has lots of CAN, additional sensor sets could be added via DroneCAN or Cyphal. However, DroneCAN peripherals are difficult to find for specialized sensors such as rangefinders which normally interface over I2c or serial. There are still challenges with the future of DroneCAN & Cyphal on px4:

  1. Cyphal driver only supports the CAN0 interface at this time, and setup for Cyphal is still challenging for beginners and not as easy to troubleshoot as DroneCAN.

  2. DroneCAN still supports the libuavcan backend that px4 leverages, but it may be reluctant to update the DSDL. DroneCAN believes the libcanard implementation is superior so libuavcan will always be a second class citizen in terms of support.

…uxrce-dds client on mrcanhubk3

Signed-off-by: dirksavage88 <dirksavage88@gmail.com>
Signed-off-by: dirksavage88 <dirksavage88@gmail.com>
@dagar dagar merged commit 3433a4c into PX4:main Nov 19, 2023
84 of 86 checks passed
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.

None yet

2 participants