QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
RadioComponentController.h
Go to the documentation of this file.
1#pragma once
2
4
8{
9 Q_OBJECT
10 QML_ELEMENT
11
12 //friend class RadioConfigTest;
13
14public:
15 RadioComponentController(QObject *parent = nullptr);
17
23 Q_ENUM(BindModes)
24
25 Q_INVOKABLE void spektrumBindMode(int mode);
26 Q_INVOKABLE void crsfBindMode();
27
28 // Overrides from RemoteControlCalibrationController
29 void start() final override;
30
31signals:
34
35private:
36 QString _stickFunctionToParamName(RemoteControlCalibrationController::StickFunction function) const;
37 bool _channelReversedParamValue(int channel);
38 void _setChannelReversedParamValue(int channel, bool reversed);
39
40 // Overrides from RemoteControlCalibrationController
41 void _saveStoredCalibrationValues() override;
42 void _readStoredCalibrationValues() override;
43
44 QString _revParamFormat;
45 bool _revParamIsBool = false;
46};
Controller class for RC Transmitter calibration.
void throttleReversedCalFailure()
Signalled to indicate cal failure due to reversed throttle.
Q_INVOKABLE void spektrumBindMode(int mode)
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 ...