QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMSensorsComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "VehicleComponent.h"
4
6{
7 Q_OBJECT
8
9public:
10 explicit APMSensorsComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent = nullptr);
11
12 bool compassSetupNeeded() const;
13 bool accelSetupNeeded() const;
14
15 QStringList setupCompleteChangedTriggerList() const final;
16
17 QString name() const final { return _name; }
18 QString description() const final { return tr("Sensors Setup is used to calibrate the sensors within your vehicle."); }
19 QString iconResource() const final { return QStringLiteral("/qmlimages/SensorsComponentIcon.png"); }
20 bool requiresSetup() const final { return true; }
21 bool setupComplete() const final { return (!compassSetupNeeded() && !accelSetupNeeded()); }
22 QUrl setupSource() const final { return QUrl::fromUserInput("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMSensorsComponent.qml"); }
23 QUrl summaryQmlSource() const final { return QUrl::fromUserInput("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMSensorsComponentSummary.qml"); }
24
25private:
26 const QString _name = tr("Sensors");
27};
QString iconResource() const final
bool setupComplete() const final
QUrl summaryQmlSource() const final
QUrl setupSource() const final
bool requiresSetup() const final
QString name() const final
QString description() const final
QStringList setupCompleteChangedTriggerList() const final