QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMTuningComponent.cc
Go to the documentation of this file.
1
#include "
APMTuningComponent.h
"
2
#include "
Vehicle.h
"
3
4
APMTuningComponent::APMTuningComponent
(
Vehicle
*vehicle,
AutoPilotPlugin
*autopilot, QObject *parent)
5
:
VehicleComponent
(vehicle, autopilot,
AutoPilotPlugin
::UnknownVehicleComponent, parent)
6
{
7
8
}
9
10
QUrl
APMTuningComponent::setupSource
()
const
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.h
Vehicle.h
APMTuningComponent::APMTuningComponent
APMTuningComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
Definition
APMTuningComponent.cc:4
APMTuningComponent::setupSource
QUrl setupSource() const final
Definition
APMTuningComponent.cc:10
AutoPilotPlugin
Definition
AutoPilotPlugin.h:20
VehicleComponent
Definition
VehicleComponent.h:21
VehicleComponent::_vehicle
Vehicle * _vehicle
Definition
VehicleComponent.h:74
Vehicle
Definition
Vehicle.h:82
Vehicle::vehicleType
MAV_TYPE vehicleType() const
Definition
Vehicle.h:428
src
AutoPilotPlugins
APM
APMTuningComponent.cc
Generated by
1.9.8