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("The Radio Component is used to setup which channels on your RC Transmitter you will use for each vehicle control such as Roll, Pitch, Yaw and Throttle. "
18 "It also allows you to assign switches and dials to the various flight modes. "
19 "Prior to flight you must also calibrate the extents for all of your channels."); }
20 QString iconResource() const final { return QStringLiteral("/qmlimages/RadioComponentIcon.png"); }
21 bool requiresSetup() const final { return true; }
22 bool setupComplete() const final;
23 QUrl setupSource() const final { return QUrl::fromUserInput(QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/Common/RadioComponent.qml")); }
24 QUrl summaryQmlSource() const final { return QUrl::fromUserInput(QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMRadioComponentSummary.qml")); }
25
26private slots:
27 void _triggerChanged();
28
29private:
30 void _connectSetupTriggers();
31
32 const QString _name = tr("Radio");
33 const QStringList _mapParams = {
34 QStringLiteral("RCMAP_ROLL"),
35 QStringLiteral("RCMAP_PITCH"),
36 QStringLiteral("RCMAP_YAW"),
37 QStringLiteral("RCMAP_THROTTLE")
38 };
39 QList<Fact*> _triggerFacts;
40};
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
A Fact is used to hold a single value within the system.
Definition Fact.h:19