QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMTuningComponent.cc
Go to the documentation of this file.
2#include "Vehicle.h"
3
5 : VehicleComponent(vehicle, autopilot, AutoPilotPlugin::UnknownVehicleComponent, parent)
6{
7
8}
9
11{
12 return QStringLiteral(":/qml/QGroundControl/AutoPilotPlugins/APM/VehicleConfig/APMTuningCopter.VehicleConfig.json");
13}
14
16{
17 switch (_vehicle->vehicleType()) {
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 // Generated from APMTuningCopter.VehicleConfig.json
25 return QUrl::fromUserInput("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMTuningCopterComponent.qml");
26 case MAV_TYPE_SUBMARINE:
27 return QUrl::fromUserInput("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMTuningComponentSub.qml");
28 default:
29 return QUrl::fromUserInput(QString());
30 }
31}
QString vehicleConfigJson() const final
Resource path to a VehicleConfig.json page definition, or empty if none.
APMTuningComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QUrl setupSource() const final
The AutoPilotPlugin class is an abstract base class which represents the methods and objects which ar...
A vehicle component is an object which abstracts the physical portion of a vehicle into a set of conf...
MAV_TYPE vehicleType() const
Definition Vehicle.h:428