#include <PX4SensorDevice.h>
Static Public Member Functions | |
| static QString | name (quint32 deviceId) |
| Sensor chip name, or an empty string when the device type is not known. | |
| static QString | busName (quint32 deviceId) |
| Bus the sensor is on ("SPI", "I2C", "DroneCAN" ...), or an empty string when unknown. | |
| static QString | description (quint32 deviceId) |
| Chip name and bus for display, such as "ICM42688P · SPI". Empty for the unset device ID 0. | |
Decodes the device IDs PX4 stores in the CAL_*_ID parameters, using the layout and device types from the firmware's lib/drivers/device/Device.hpp and drivers/drv_sensor.h
Definition at line 8 of file PX4SensorDevice.h.
|
static |
Bus the sensor is on ("SPI", "I2C", "DroneCAN" ...), or an empty string when unknown.
Definition at line 72 of file PX4SensorDevice.cc.
Referenced by description().
|
static |
Chip name and bus for display, such as "ICM42688P · SPI". Empty for the unset device ID 0.
Definition at line 92 of file PX4SensorDevice.cc.
References busName(), and name().
Referenced by SensorsComponentController::deviceDescription().
|
static |
Sensor chip name, or an empty string when the device type is not known.
Definition at line 61 of file PX4SensorDevice.cc.
Referenced by description().