From f20938e47c0b91a7a2dbece47343cb7159eb8b7a Mon Sep 17 00:00:00 2001 From: Claudio Chies Date: Tue, 16 Sep 2025 10:04:33 +0200 Subject: [PATCH] UORB: Add DeviceInformation Message --- msg/CMakeLists.txt | 1 + msg/DeviceInformation.msg | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 msg/DeviceInformation.msg diff --git a/msg/CMakeLists.txt b/msg/CMakeLists.txt index dcb33a5cbd..330ecbc75a 100644 --- a/msg/CMakeLists.txt +++ b/msg/CMakeLists.txt @@ -63,6 +63,7 @@ set(msg_files DebugKeyValue.msg DebugValue.msg DebugVect.msg + DeviceInformation.msg DifferentialPressure.msg DistanceSensor.msg DistanceSensorModeChangeRequest.msg diff --git a/msg/DeviceInformation.msg b/msg/DeviceInformation.msg new file mode 100644 index 0000000000..63db69922e --- /dev/null +++ b/msg/DeviceInformation.msg @@ -0,0 +1,20 @@ +uint64 timestamp # time since system start (microseconds) + +uint8 device_type # Type of the device (see DEVICE_TYPE enum) +char[32] vendor_name # Name of the device vendor +char[32] model_name # Name of the device model + +uint32 device_id # unique device ID for the sensor that does not change between power cycles +char[24] firmware_version # Version of the firmware. If not available, set to "-1" +char[24] hardware_version # Version of the hardware. If not available, set to "-1" +char[32] serial_number # Device serial number or unique identifier. If not available, set to "-1" + +# Device type constants matching MAVLink DEVICE_TYPE enum +uint8 DEVICE_TYPE_GENERIC = 0 +uint8 DEVICE_TYPE_AIRSPEED = 1 +uint8 DEVICE_TYPE_ESC = 2 +uint8 DEVICE_TYPE_GPS = 3 +uint8 DEVICE_TYPE_MAG = 4 +uint8 DEVICE_TYPE_PARACHUTE = 5 +uint8 DEVICE_TYPE_RANGEFINDER = 6 +uint8 DEVICE_TYPE_WINCH = 7