From 5189d53efda006ae18c2012cc3d8ba88d5ad4918 Mon Sep 17 00:00:00 2001 From: rishabsingh3003 Date: Mon, 26 Sep 2022 18:07:11 +0530 Subject: [PATCH] added DSDL for proximity sensors --- .../proximity_sensor/21910.Proximity.uavcan | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ardupilot/equipment/proximity_sensor/21910.Proximity.uavcan diff --git a/ardupilot/equipment/proximity_sensor/21910.Proximity.uavcan b/ardupilot/equipment/proximity_sensor/21910.Proximity.uavcan new file mode 100644 index 0000000..edb3c6b --- /dev/null +++ b/ardupilot/equipment/proximity_sensor/21910.Proximity.uavcan @@ -0,0 +1,18 @@ +# +# Proximity data +# +uint8 sensor_id # Sensor ID + +uint3 READING_TYPE_NO_DATA = 0 # Distance is unknown +uint3 READING_TYPE_NOT_CONNECTED = 1 # Distance field contains valid distance +uint3 READING_TYPE_GOOD = 2 # Distance field contains valid reading for the sensor + +uint3 reading_type # Sensor Status + +uint5 flags # Reserved +uint5 FLAGS_NONE = 0 + +float16 yaw # Degrees in body frame +float16 pitch # Degrees in body frame +float16 distance # Meters +