QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4SerialPortsComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "VehicleComponent.h"
4
5class Fact;
7
9{
10 Q_OBJECT
11
12public:
13 PX4SerialPortsComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent = nullptr);
14
16 static QList<Fact*> functionFacts(ParameterManager* parameterManager);
17
18 // Virtuals from VehicleComponent
19 QStringList setupCompleteChangedTriggerList() const final { return QStringList(); }
20
21 QString name() const final { return _name; }
22
23 QString description() const final;
24 QString iconResource() const final;
25
26 bool requiresSetup() const final { return false; }
27
28 bool setupComplete() const final { return true; }
29
30 QUrl setupSource() const final;
31
32 QUrl summaryQmlSource() const final { return QUrl(); }
33
34 QList<VehicleSummaryItem> summaryItems() const final;
35 QStringList summaryChangedTriggerList() const final;
36
37 bool allowSetupWhileArmed() const final { return true; }
38
39private:
40 const QString _name;
41};
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:15
static QList< Fact * > functionFacts(ParameterManager *parameterManager)
Parameters which select the serial port a function runs on. The page is only shown when there are som...
QList< VehicleSummaryItem > summaryItems() const final
Values for this component's card on the Summary page. A component with none falls back to summaryQmlS...
QUrl summaryQmlSource() const final
QStringList setupCompleteChangedTriggerList() const final
QString iconResource() const final
QStringList summaryChangedTriggerList() const final
Parameters whose change emits summaryItemsChanged, besides those that change setupComplete.
PX4SerialPortsComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QString description() const final
bool allowSetupWhileArmed() const final
VehicleComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent, QObject *parent=nullptr)