QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SafetyComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "VehicleComponent.h"
4
6{
7 Q_OBJECT
8
9public:
10 SafetyComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent = nullptr);
11
12 // Virtuals from VehicleComponent
13 QStringList setupCompleteChangedTriggerList(void) const override;
14
15 // Virtuals from VehicleComponent
16 QString name (void) const override;
17 QString description (void) const override;
18 QString iconResource (void) const override;
19 bool requiresSetup (void) const override;
20 bool setupComplete (void) const override;
21 QUrl setupSource (void) const override;
22 QUrl summaryQmlSource (void) const override;
23 QString vehicleConfigJson (void) const override;
24 bool allowSetupWhileArmed (void) const override { return true; }
25 bool allowSetupWhileFlying (void) const override { return true; }
26
27private:
28 const QString _name;
29 QVariantList _summaryItems;
30};
The AutoPilotPlugin class is an abstract base class which represents the methods and objects which ar...
QString vehicleConfigJson(void) const override
Resource path to a VehicleConfig.json page definition, or empty if none.
QString iconResource(void) const override
QString description(void) const override
QString name(void) const override
QUrl setupSource(void) const override
QUrl summaryQmlSource(void) const override
QStringList setupCompleteChangedTriggerList(void) const override
bool allowSetupWhileFlying(void) const override
bool allowSetupWhileArmed(void) const override
bool setupComplete(void) const override
bool requiresSetup(void) const override
A vehicle component is an object which abstracts the physical portion of a vehicle into a set of conf...