QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
JoystickConfigController.h
Go to the documentation of this file.
1#pragma once
2
4
5class Joystick;
6
8{
9 Q_OBJECT
10 QML_ELEMENT
11 Q_MOC_INCLUDE("Joystick.h")
12
13public:
14 JoystickConfigController(QObject *parent = nullptr);
16
17 Q_PROPERTY(Joystick* joystick READ joystick WRITE _setJoystick NOTIFY joystickChanged REQUIRED)
18
19 Joystick* joystick() const { return _joystick; }
20
21 // Overrides from RemoteControlCalibrationController
22 void start() final override;
23
24signals:
26
27private slots:
28 void _setJoystick(Joystick* joystick);
29
30private:
31 // Overrides from RemoteControlCalibrationController
32 void _saveStoredCalibrationValues() override;
33 void _readStoredCalibrationValues() override;
34 bool _stickFunctionEnabled(StickFunction stickFunction) override;
35
36 Joystick* _joystick = nullptr;
37};
void joystickChanged(Joystick *joystick)
Abstract base class for calibrating RC and Joystick controller.
StickFunction
These identify the various controls functions. They are also used as indices into the _rgFunctioInfo ...