QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMSafetyComponent.cc
Go to the documentation of this file.
2#include "Vehicle.h"
3#include "QGCMAVLink.h"
4
6 : VehicleComponent(vehicle, autopilot, AutoPilotPlugin::KnownSafetyVehicleComponent, parent)
7{
8
9}
10
12{
13 switch (_vehicle->vehicleType()) {
14 case MAV_TYPE_SUBMARINE:
15 return tr("Safety Setup is used to setup failsafe actions, leak detection, and arming checks.");
16 case MAV_TYPE_GROUND_ROVER:
17 case MAV_TYPE_FIXED_WING:
18 case MAV_TYPE_QUADROTOR:
19 case MAV_TYPE_COAXIAL:
20 case MAV_TYPE_HELICOPTER:
21 case MAV_TYPE_HEXAROTOR:
22 case MAV_TYPE_OCTOROTOR:
23 case MAV_TYPE_TRICOPTER:
24 default:
25 return tr("Safety Setup is used to setup triggers for Return to Land as well as the settings for Return to Land itself.");
26 }
27}
28
30{
31 switch (_vehicle->vehicleType()) {
32 case MAV_TYPE_FIXED_WING:
33 case MAV_TYPE_QUADROTOR:
34 case MAV_TYPE_COAXIAL:
35 case MAV_TYPE_HELICOPTER:
36 case MAV_TYPE_HEXAROTOR:
37 case MAV_TYPE_OCTOROTOR:
38 case MAV_TYPE_TRICOPTER:
39 case MAV_TYPE_GROUND_ROVER:
40 return QUrl::fromUserInput(QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMSafetyComponent.qml"));
41 case MAV_TYPE_SUBMARINE:
42 return QUrl::fromUserInput(QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMSafetyComponentSub.qml"));
43 default:
44 return QUrl::fromUserInput(QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMNotSupported.qml"));
45 }
46}
47
49{
50 switch (_vehicle->vehicleType()) {
51 case MAV_TYPE_FIXED_WING:
52 case MAV_TYPE_QUADROTOR:
53 case MAV_TYPE_COAXIAL:
54 case MAV_TYPE_HELICOPTER:
55 case MAV_TYPE_HEXAROTOR:
56 case MAV_TYPE_OCTOROTOR:
57 case MAV_TYPE_TRICOPTER:
58 case MAV_TYPE_GROUND_ROVER:
59 return QUrl::fromUserInput(QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMSafetyComponentSummary.qml"));
60 case MAV_TYPE_SUBMARINE:
61 return QUrl::fromUserInput(QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMSafetyComponentSummarySub.qml"));
62 default:
63 return QUrl::fromUserInput(QStringLiteral("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMNotSupported.qml"));
64 }
65}
APMSafetyComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QUrl summaryQmlSource() const final
QString description() const final
QUrl setupSource() const final
MAV_TYPE vehicleType() const
Definition Vehicle.h:428