QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMAirframeComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "VehicleComponent.h"
4
5class Fact;
6
8{
9 Q_OBJECT
10
11public:
12 explicit APMAirframeComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent = nullptr);
13
14 QStringList setupCompleteChangedTriggerList() const final;
15
16 QString name() const final { return _name; }
17 QString description() const final { return tr("Configure the airframe type that matches your vehicle."); }
18 QString iconResource() const final { return QStringLiteral("/qmlimages/AirframeComponentIcon.png"); }
19 bool requiresSetup() const final { return _requiresFrameSetup; }
20 bool setupComplete() const final;
21 QUrl setupSource() const final { return (_requiresFrameSetup ? QUrl::fromUserInput(QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMAirframeComponent.qml")) : QUrl()); }
22 QUrl summaryQmlSource() const final { return (_requiresFrameSetup ? QUrl::fromUserInput(QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMAirframeComponentSummary.qml")) : QUrl()); }
23
24private:
25 bool _requiresFrameSetup = false;
26 const QString _name = tr("Frame");
27 Fact *_frameClassFact = nullptr;
28
29 static constexpr const char *_frameClassParam = "FRAME_CLASS";
30};
QStringList setupCompleteChangedTriggerList() const final
QString iconResource() const final
QUrl setupSource() const final
QString name() const final
bool setupComplete() const final
bool requiresSetup() const final
QString description() const final
QUrl summaryQmlSource() const final
The AutoPilotPlugin class is an abstract base class which represents the methods and objects which ar...
A Fact is used to hold a single value within the system.
Definition Fact.h:17
A vehicle component is an object which abstracts the physical portion of a vehicle into a set of conf...