QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
FlightModesComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "VehicleComponent.h"
4
6{
7 Q_OBJECT
8
9public:
10 FlightModesComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent = nullptr);
11
12 // Overrides from VehicleComponent
13 QString name(void) const final;
14 QString description(void) const final;
15 QString iconResource(void) const final;
16 QUrl setupSource(void) const final;
17
18 QUrl summaryQmlSource(void) const final { return QUrl(); }
19
20 QList<VehicleSummaryItem> summaryItems() const final;
21 QStringList summaryChangedTriggerList() const final;
22 void setupTriggerSignals() final;
23 bool requiresSetup() const final { return false; }
24 bool setupComplete() const final { return true; }
25 QStringList setupCompleteChangedTriggerList() const final { return QStringList(); }
26
27private:
28 QString _modeName(const QString& paramName) const;
29
30 const QString _name;
31};
The AutoPilotPlugin class is an abstract base class which represents the methods and objects which ar...
QString name(void) const final
bool setupComplete() const final
QString description(void) const final
QList< VehicleSummaryItem > summaryItems() const final
Values for this component's card on the Summary page. A component with none falls back to summaryQmlS...
QStringList summaryChangedTriggerList() const final
Parameters whose change emits summaryItemsChanged, besides those that change setupComplete.
QString iconResource(void) const final
QUrl summaryQmlSource(void) const final
bool requiresSetup() const final
QUrl setupSource(void) const final
FlightModesComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QStringList setupCompleteChangedTriggerList() const final
VehicleComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent, QObject *parent=nullptr)