mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 02:44:06 +08:00
UORB: Add DeviceInformation Message
This commit is contained in:
parent
63ec2f0406
commit
f20938e47c
@ -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
20
msg/DeviceInformation.msg
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user