QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMRadioComponent.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 APMRadioComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent = nullptr);
13
14 QStringList setupCompleteChangedTriggerList() const final { return QStringList(); }
15
16 QString name() const final { return _name; }
17 QString description() const final { return tr("Configure transmitter calibration and channel assignment."); }
18 QString iconResource() const final { return QStringLiteral("/qmlimages/RadioComponentIcon.png"); }
19 bool requiresSetup() const final { return true; }
20 bool setupComplete() const final;
21 QUrl setupSource() const final { return QUrl::fromUserInput(QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/Common/RadioComponent.qml")); }
22 QUrl summaryQmlSource() const final { return QUrl::fromUserInput(QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMRadioComponentSummary.qml")); }
23
24private slots:
25 void _triggerChanged();
26
27private:
28 void _connectSetupTriggers();
29
30 const QString _name = tr("Radio");
31 const QStringList _mapParams = {
32 QStringLiteral("RCMAP_ROLL"),
33 QStringLiteral("RCMAP_PITCH"),
34 QStringLiteral("RCMAP_YAW"),
35 QStringLiteral("RCMAP_THROTTLE")
36 };
37 QList<Fact*> _triggerFacts;
38};
QString description() const final
bool setupComplete() const final
QUrl summaryQmlSource() const final
QString iconResource() const final
QStringList setupCompleteChangedTriggerList() const final
QString name() const final
bool requiresSetup() const final
QUrl setupSource() 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...