mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-03-24 02:24:09 +08:00
* Redirect 301/308 HTTP link fixes * Easy 404 fixes - easy * Add internal anchor fixes and generate msg docs fix
6.5 KiB
6.5 KiB
pageClass
| pageClass |
|---|
| is-wide-page |
DeviceInformation (UORB message)
Device information.
Can be used to uniquely associate a device_id from a sensor topic with a physical device using serial number. as well as tracking of the used firmware versions on the devices.
TOPICS: device_information
Fields
| Name | Type | Unit [Frame] | Range/Enum | Description |
|---|---|---|---|---|
| timestamp | uint64 |
time since system start (microseconds) | ||
| device_type | uint8 |
DEVICE_TYPE | Type of the device. Matches MAVLink DEVICE_TYPE enum | |
| name | char[80] |
Name of device e.g. DroneCAN node name | ||
uint32 |
Unique device ID for the sensor. Does not change between power cycles. (Invalid: 0 if not available) | |||
| firmware_version | char[24] |
Firmware version. (Invalid: empty if not available) | ||
| hardware_version | char[24] |
Hardware version. (Invalid: empty if not available) | ||
| serial_number | char[33] |
Device serial number or unique identifier. (Invalid: empty if not available) |
Enums
DEVICE_TYPE
Source Message
::: details Click here to see original file
# Device information
#
# Can be used to uniquely associate a device_id from a sensor topic with a physical device using serial number.
# as well as tracking of the used firmware versions on the devices.
uint64 timestamp # time since system start (microseconds)
uint8 device_type # [@enum DEVICE_TYPE] Type of the device. Matches MAVLink DEVICE_TYPE enum
uint8 DEVICE_TYPE_GENERIC = 0 # Generic/unknown sensor
uint8 DEVICE_TYPE_AIRSPEED = 1 # Airspeed sensor
uint8 DEVICE_TYPE_ESC = 2 # ESC
uint8 DEVICE_TYPE_SERVO = 3 # Servo
uint8 DEVICE_TYPE_GPS = 4 # GPS
uint8 DEVICE_TYPE_MAGNETOMETER = 5 # Magnetometer
uint8 DEVICE_TYPE_PARACHUTE = 6 # Parachute
uint8 DEVICE_TYPE_RANGEFINDER = 7 # Rangefinder
uint8 DEVICE_TYPE_WINCH = 8 # Winch
uint8 DEVICE_TYPE_BAROMETER = 9 # Barometer
uint8 DEVICE_TYPE_OPTICAL_FLOW = 10 # Optical flow
uint8 DEVICE_TYPE_ACCELEROMETER = 11 # Accelerometer
uint8 DEVICE_TYPE_GYROSCOPE = 12 # Gyroscope
uint8 DEVICE_TYPE_DIFFERENTIAL_PRESSURE = 13 # Differential pressure
uint8 DEVICE_TYPE_BATTERY = 14 # Battery
uint8 DEVICE_TYPE_HYGROMETER = 15 # Hygrometer
char[80] name # Name of device e.g. DroneCAN node name
uint32 device_id # [-] [@invalid 0 if not available] Unique device ID for the sensor. Does not change between power cycles.
char[24] firmware_version # [-] [@invalid empty if not available] Firmware version.
char[24] hardware_version # [-] [@invalid empty if not available] Hardware version.
char[33] serial_number # [-] [@invalid empty if not available] Device serial number or unique identifier.
:::