QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GenericAutoPilotPlugin.cc
Go to the documentation of this file.
1
#include "
GenericAutoPilotPlugin.h
"
2
#include "
JoystickComponent.h
"
3
4
GenericAutoPilotPlugin::GenericAutoPilotPlugin
(
Vehicle
*vehicle, QObject *parent)
5
:
AutoPilotPlugin
(vehicle, parent)
6
{
7
8
}
9
10
const
QVariantList&
GenericAutoPilotPlugin::vehicleComponents
()
11
{
12
if
(_components.isEmpty()) {
13
_joystickComponent =
new
JoystickComponent
(
_vehicle
,
this
,
this
);
14
_joystickComponent->setupTriggerSignals();
15
_components.append(QVariant::fromValue(qobject_cast<VehicleComponent*>(_joystickComponent)));
16
}
17
return
_components;
18
}
GenericAutoPilotPlugin.h
JoystickComponent.h
AutoPilotPlugin
Definition
AutoPilotPlugin.h:20
AutoPilotPlugin::_vehicle
Vehicle * _vehicle
Definition
AutoPilotPlugin.h:66
GenericAutoPilotPlugin::GenericAutoPilotPlugin
GenericAutoPilotPlugin(Vehicle *vehicle, QObject *parent=nullptr)
Definition
GenericAutoPilotPlugin.cc:4
GenericAutoPilotPlugin::vehicleComponents
const QVariantList & vehicleComponents() final
Definition
GenericAutoPilotPlugin.cc:10
JoystickComponent
Definition
JoystickComponent.h:12
Vehicle
Definition
Vehicle.h:82
src
AutoPilotPlugins
Generic
GenericAutoPilotPlugin.cc
Generated by
1.9.8