QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GenericAutoPilotPlugin.cc
Go to the documentation of this file.
2#include "JoystickComponent.h"
3
5 : AutoPilotPlugin(vehicle, parent)
6{
7
8}
9
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(Vehicle *vehicle, QObject *parent=nullptr)
const QVariantList & vehicleComponents() final