QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PX4CollisionComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "VehicleComponent.h"
4
6{
7 Q_OBJECT
8
9public:
10 PX4CollisionComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent = nullptr);
11
12 // Virtuals from VehicleComponent
13 QStringList setupCompleteChangedTriggerList() const final { return QStringList(); }
14
15 QString name() const final { return _name; }
16
17 QString description() const final;
18 QString iconResource() const final;
19 QStringList searchKeywords() const final;
20
21 bool requiresSetup() const final { return false; }
22
23 bool setupComplete() const final { return true; }
24
25 QUrl setupSource() const final;
26
27 QUrl summaryQmlSource() const final { return QUrl(); }
28
29 QList<VehicleSummaryItem> summaryItems() const final;
30
31 QStringList summaryChangedTriggerList() const final { return {QStringLiteral("CP_DIST")}; }
32
33 bool allowSetupWhileArmed() const final { return true; }
34
35 bool allowSetupWhileFlying() const final { return true; }
36
37private:
38 const QString _name;
39};
The AutoPilotPlugin class is an abstract base class which represents the methods and objects which ar...
QString iconResource() const final
QStringList summaryChangedTriggerList() const final
Parameters whose change emits summaryItemsChanged, besides those that change setupComplete.
QStringList setupCompleteChangedTriggerList() const final
bool allowSetupWhileFlying() const final
QUrl setupSource() const final
QUrl summaryQmlSource() const final
QString description() const final
QStringList searchKeywords() const final
Translated search terms for the whole component, for pages without vehicleConfigJson() sections.
PX4CollisionComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QString name() const final
bool requiresSetup() 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...
bool setupComplete() const final
bool allowSetupWhileArmed() const final
VehicleComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, AutoPilotPlugin::KnownVehicleComponent KnownVehicleComponent, QObject *parent=nullptr)