QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4SensorDevice.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QString>
4#include <QtCore/QtTypes>
5
8class PX4SensorDevice
9{
10public:
12 static QString name(quint32 deviceId);
13
15 static QString busName(quint32 deviceId);
16
18 static QString description(quint32 deviceId);
19
20private:
21 PX4SensorDevice() = delete;
22};
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.
static QString name(quint32 deviceId)
Sensor chip name, or an empty string when the device type is not known.