QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4SensorDevice Class Reference

#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.

Detailed Description

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.

Member Function Documentation

◆ busName()

QString PX4SensorDevice::busName ( quint32 deviceId)
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().

◆ description()

QString PX4SensorDevice::description ( quint32 deviceId)
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().

◆ name()

QString PX4SensorDevice::name ( quint32 deviceId)
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().


The documentation for this class was generated from the following files: