Hi !
"Recently, we encountered an issue where the distance_sensor orientation does not match the PX4 configuration.On the UAVCAN node (ToF module) side, I ran the listener distance_sensor command in the MAVLink console while the ToF instances were in the OPERATE state. Most of the published data is correct (such as timestamp, ID, and distance). However, the orientation information always shows 25 (Down Facing), even when configured to other directions like Right or Left Facing.Upon investigation, I found that the current source code does not seem to handle orientation information at all:
PX4-Autopilot\src\drivers\uavcannode\Publishers\RangeSensorMeasurement.hpp.
Could you please help check this implementation? Thanks!
BR,
Sam.