QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMAdvancedTuningCopterComponent.cc
Go to the documentation of this file.
1
#include "
APMAdvancedTuningCopterComponent.h
"
2
#include "
Vehicle.h
"
3
4
APMAdvancedTuningCopterComponent::APMAdvancedTuningCopterComponent
(
Vehicle
*vehicle,
AutoPilotPlugin
*autopilot, QObject *parent)
5
:
VehicleComponent
(vehicle, autopilot,
AutoPilotPlugin
::UnknownVehicleComponent, parent)
6
{
7
}
8
9
QUrl
APMAdvancedTuningCopterComponent::setupSource
()
const
10
{
11
switch
(
_vehicle
->
vehicleType
()) {
12
case
MAV_TYPE_QUADROTOR:
13
case
MAV_TYPE_COAXIAL:
14
case
MAV_TYPE_HELICOPTER:
15
case
MAV_TYPE_HEXAROTOR:
16
case
MAV_TYPE_OCTOROTOR:
17
case
MAV_TYPE_TRICOPTER:
18
return
QUrl::fromUserInput(
"qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMAdvancedTuningCopterComponent.qml"
);
19
default
:
20
return
QUrl::fromUserInput(QString());
21
}
22
}
APMAdvancedTuningCopterComponent.h
Vehicle.h
APMAdvancedTuningCopterComponent::APMAdvancedTuningCopterComponent
APMAdvancedTuningCopterComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
Definition
APMAdvancedTuningCopterComponent.cc:4
APMAdvancedTuningCopterComponent::setupSource
QUrl setupSource() const final
Definition
APMAdvancedTuningCopterComponent.cc:9
AutoPilotPlugin
Definition
AutoPilotPlugin.h:17
VehicleComponent
Definition
VehicleComponent.h:18
VehicleComponent::_vehicle
Vehicle * _vehicle
Definition
VehicleComponent.h:93
Vehicle
Definition
Vehicle.h:82
Vehicle::vehicleType
MAV_TYPE vehicleType() const
Definition
Vehicle.h:426
src
AutoPilotPlugins
APM
APMAdvancedTuningCopterComponent.cc
Generated by
1.9.8