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
4APMMotorComponent::APMMotorComponent(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent)
5 : MotorComponent(vehicle, autopilot, parent)
6{
7
8}
9
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(Vehicle *vehicle, AutoPilotPlugin *autopilot, QObject *parent=nullptr)
QUrl setupSource() const final
MAV_TYPE vehicleType() const
Definition Vehicle.h:428