QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
JoystickConfigController.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QLoggingCategory>
4
6#include "Joystick.h"
7
8Q_DECLARE_LOGGING_CATEGORY(JoystickConfigControllerLog)
9Q_DECLARE_LOGGING_CATEGORY(JoystickConfigControllerVerboseLog)
10
12{
13 Q_OBJECT
14 QML_ELEMENT
15
16public:
17 JoystickConfigController(QObject *parent = nullptr);
19
20 Q_PROPERTY(Joystick* joystick READ joystick WRITE _setJoystick NOTIFY joystickChanged REQUIRED)
21
22 Joystick* joystick() const { return _joystick; }
23
24 // Overrides from RemoteControlCalibrationController
25 void start() final override;
26
27signals:
28 void joystickChanged(Joystick* joystick);
29
30private slots:
31 void _setJoystick(Joystick* joystick);
32
33private:
34 // Overrides from RemoteControlCalibrationController
35 void _saveStoredCalibrationValues() override;
36 void _readStoredCalibrationValues() override;
37 bool _stickFunctionEnabled(StickFunction stickFunction) override;
38
39 Joystick* _joystick = nullptr;
40};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
Abstract base class for calibrating RC and Joystick controller.