UORB: Add DeviceInformation Message

This commit is contained in:
Claudio Chies 2025-09-16 10:04:33 +02:00
parent 63ec2f0406
commit f20938e47c
2 changed files with 21 additions and 0 deletions

View File

@ -63,6 +63,7 @@ set(msg_files
DebugKeyValue.msg
DebugValue.msg
DebugVect.msg
DeviceInformation.msg
DifferentialPressure.msg
DistanceSensor.msg
DistanceSensorModeChangeRequest.msg

20
msg/DeviceInformation.msg Normal file
View File

@ -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