mavros
mavros copied to clipboard
rangefinder issues
how i run mavros
ros2 run mavros mavros_node --ros-args -p fcu_url:=/dev/ttyTHS0:115200 -p gcs_url:=udp://@127.0.0.1
Issue details
i get the error:
my fcu parameters are set to make the rangefinder my pos_z source (ek3_src_pos_z = 2) before i start the mavros node i can see good reading of the rangefinder in mission planner
after i run the node i get: "[mavros.distance_sensor]: DS: no mapping for sensor id: 0, type: 4, orientation: 25" the rangefinder value in mission planner also stops changing "ros2 topic echo /mavros/rangefinder/rangefinder" shows the correct values "ros2 topic echo /mavros/local_position/pose" shows incorrect and inconsistent z values
MAVROS version and platform
Mavros: 2.4.0 ROS: foxy Ubuntu: 20.04
Autopilot type and version
ArduPilot 4.4.0