From f3d26582eb5e32d372c9369e4f739b36a3ffa74d Mon Sep 17 00:00:00 2001 From: aminballoon Date: Fri, 24 Oct 2025 20:13:21 +0700 Subject: [PATCH] Add contact sensor status --- .../contact_sensor/1150.Status.uavcan | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 uavcan/equipment/contact_sensor/1150.Status.uavcan diff --git a/uavcan/equipment/contact_sensor/1150.Status.uavcan b/uavcan/equipment/contact_sensor/1150.Status.uavcan new file mode 100644 index 0000000..d1e0d5a --- /dev/null +++ b/uavcan/equipment/contact_sensor/1150.Status.uavcan @@ -0,0 +1,22 @@ +# +# Contact Status +# + +uint32 uptime_sec + +uint8 sensor_id + +# +# Sensor status flags. +# Notes: +# - STATUS_FLAG_OK should be set when the contact sensor is operating normally. +# - STATUS_FLAG_ERROR should be set if the contact sensor reports an error. +# +uint8 STATUS_FLAG_OK = 1 # STATUS_FLAG_OK: The contact sensor is operating normally +uint8 STATUS_FLAG_ERROR = 2 # STATUS_FLAG_ERROR: The contact sensor has an error +uint8 status_flag + +# +# Either a binary command (0 - disengage/disconected, 1+ - engage/conected) or bitmask +# +uint2 engage # engage or disengage