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 "
RemoteControlCalibrationController.h
"
4
5
class
Joystick
;
6
7
class
JoystickConfigController
:
public
RemoteControlCalibrationController
8
{
9
Q_OBJECT
10
QML_ELEMENT
11
Q_MOC_INCLUDE(
"Joystick.h"
)
12
13
public
:
14
JoystickConfigController
(QObject *parent =
nullptr
);
15
~JoystickConfigController
();
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
24
signals:
25
void
joystickChanged
(
Joystick
*
joystick
);
26
27
private slots:
28
void
_setJoystick(
Joystick
*
joystick
);
29
30
private:
31
// Overrides from RemoteControlCalibrationController
32
void
_saveStoredCalibrationValues() override;
33
void
_readStoredCalibrationValues() override;
34
bool
_stickFunctionEnabled(
StickFunction
stickFunction) override;
35
36
Joystick
* _joystick =
nullptr
;
37
};
RemoteControlCalibrationController.h
JoystickConfigController
Definition
JoystickConfigController.h:8
JoystickConfigController::joystick
Joystick * joystick() const
Definition
JoystickConfigController.h:19
JoystickConfigController::~JoystickConfigController
~JoystickConfigController()
Definition
JoystickConfigController.cc:32
JoystickConfigController::joystickChanged
void joystickChanged(Joystick *joystick)
JoystickConfigController::start
void start() final override
Definition
JoystickConfigController.cc:39
Joystick
Definition
Joystick.h:63
RemoteControlCalibrationController
Abstract base class for calibrating RC and Joystick controller.
Definition
RemoteControlCalibrationController.h:13
RemoteControlCalibrationController::StickFunction
StickFunction
These identify the various controls functions. They are also used as indices into the _rgFunctioInfo ...
Definition
RemoteControlCalibrationController.h:98
src
Vehicle
VehicleSetup
JoystickConfigController.h
Generated by
1.9.8