companion icon indicating copy to clipboard operation
companion copied to clipboard

sensortype should enumerate to ULTRASOUND in ping1d_mavlink_driver.py

Open FletcherFT opened this issue 4 years ago • 0 comments

Line 103 of tools/ping1d_mavlink_driver.py:

sensor_type = 2

This enumerates to INFRARED according to Mavlink distance sensor specification and causes errors when using MAVROS to publish distance_sensor messages.

I think the enumerator should be 1 for ULTRASOUND enumeration. Setting sensor_type = 1 allows MAVROS to convert the distance_sensor message correctly.

FletcherFT avatar May 13 '21 17:05 FletcherFT