QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMMotorComponent.cc
Go to the documentation of this file.
1
#include "
APMMotorComponent.h
"
2
#include "
Vehicle.h
"
3
4
APMMotorComponent::APMMotorComponent
(
Vehicle
*vehicle,
AutoPilotPlugin
*autopilot, QObject *parent)
5
:
MotorComponent
(vehicle, autopilot, parent)
6
{
7
8
}
9
10
QUrl
APMMotorComponent::setupSource
()
const
11
{
12
switch
(
_vehicle
->
vehicleType
()) {
13
case
MAV_TYPE_SUBMARINE:
14
return
QUrl::fromUserInput(QStringLiteral(
"qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMSubMotorComponent.qml"
));
15
default
:
16
return
QUrl::fromUserInput(QStringLiteral(
"qrc:/qml/QGroundControl/AutoPilotPlugins/APM/APMMotorComponent.qml"
));
17
}
18
}
APMMotorComponent.h
Vehicle.h
APMMotorComponent::APMMotorComponent
APMMotorComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
Definition
APMMotorComponent.cc:4
APMMotorComponent::setupSource
QUrl setupSource() const final
Definition
APMMotorComponent.cc:10
AutoPilotPlugin
Definition
AutoPilotPlugin.h:20
MotorComponent
Definition
MotorComponent.h:6
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
APMMotorComponent.cc
Generated by
1.9.8