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 switch (_vehicle->vehicleType()) {
13 case MAV_TYPE_QUADROTOR:
14 case MAV_TYPE_COAXIAL:
15 case MAV_TYPE_HELICOPTER:
16 case MAV_TYPE_HEXAROTOR:
17 case MAV_TYPE_OCTOROTOR:
18 case MAV_TYPE_TRICOPTER:
19 return QUrl::fromUserInput("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMTuningComponentCopter.qml");
20 case MAV_TYPE_SUBMARINE:
21 return QUrl::fromUserInput("qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMTuningComponentSub.qml");
22 default:
23 return QUrl::fromUserInput(QString());
24 }
25}
APMTuningComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QUrl setupSource() const final
MAV_TYPE vehicleType() const
Definition Vehicle.h:428