QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
SafetyComponent.cc
Go to the documentation of this file.
1#include "SafetyComponent.h"
2
3SafetyComponent::SafetyComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, QObject* parent) :
4 VehicleComponent(vehicle, autopilot, AutoPilotPlugin::KnownSafetyVehicleComponent, parent),
5 _name(tr("Safety"))
6{
7}
8
9QString SafetyComponent::name(void) const
10{
11 return _name;
12}
13
15{
16 return tr("Configure failsafe actions, geofence, return to launch, and land mode settings.");
17}
18
20{
21 return "/qmlimages/SafetyComponentIcon.png";
22}
23
25{
26 return false;
27}
28
30{
31 // FIXME: What aboout invalid settings?
32 return true;
33}
34
36{
37 return QStringList();
38}
39
41{
42 // Generated from Safety.VehicleConfig.json
43 return QUrl::fromUserInput("qrc:/qml/QGroundControl/AutoPilotPlugins/PX4/SafetyComponent.qml");
44}
45
47{
48 return QUrl::fromUserInput("qrc:/qml/QGroundControl/AutoPilotPlugins/PX4/SafetyComponentSummary.qml");
49}
50
52{
53 return QStringLiteral(":/qml/QGroundControl/AutoPilotPlugins/PX4/VehicleConfig/Safety.VehicleConfig.json");
54}
The AutoPilotPlugin class is an abstract base class which represents the methods and objects which ar...
QString vehicleConfigJson(void) const override
Resource path to a VehicleConfig.json page definition, or empty if none.
QString iconResource(void) const override
QString description(void) const override
QString name(void) const override
QUrl setupSource(void) const override
QUrl summaryQmlSource(void) const override
SafetyComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QStringList setupCompleteChangedTriggerList(void) const override
bool setupComplete(void) const override
bool requiresSetup(void) const override
A vehicle component is an object which abstracts the physical portion of a vehicle into a set of conf...