QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMSafetyComponent.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 APMSafetyComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent = nullptr);
11
12 QStringList setupCompleteChangedTriggerList() const final { return QStringList(); }
13
14 QString name() const final { return _name; }
15 QString description() const final;
16 QString vehicleConfigJson() const final;
17 QString iconResource() const final { return QStringLiteral("/qmlimages/SafetyComponentIcon.png"); }
18 bool requiresSetup() const final { return false; }
19 bool setupComplete() const final { return true; } // FIXME: What aboout invalid settings?
20 QUrl setupSource() const final;
21 QUrl summaryQmlSource() const final;
22 bool allowSetupWhileArmed() const final { return true; }
23 bool allowSetupWhileFlying() const final { return true; }
24
25private:
26 const QString _name = tr("Flight Safety");
27};
QStringList setupCompleteChangedTriggerList() const final
bool allowSetupWhileArmed() const final
QString iconResource() const final
bool setupComplete() const final
QString name() const final
bool requiresSetup() const final
QString vehicleConfigJson() const final
Resource path to a VehicleConfig.json page definition, or empty if none.
bool allowSetupWhileFlying() const final
QUrl summaryQmlSource() const final
QString description() const final
QUrl setupSource() const final
The AutoPilotPlugin class is an abstract base class which represents the methods and objects which ar...
A vehicle component is an object which abstracts the physical portion of a vehicle into a set of conf...