QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
RadioComponentController.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QLoggingCategory>
4
6
7Q_DECLARE_LOGGING_CATEGORY(RadioComponentControllerLog)
8Q_DECLARE_LOGGING_CATEGORY(RadioComponentControllerVerboseLog)
9
10
12{
13 Q_OBJECT
14 QML_ELEMENT
15
16 //friend class RadioConfigTest;
17
18public:
19 RadioComponentController(QObject *parent = nullptr);
21
22 enum BindModes {
25 DSMX8
26 };
27 Q_ENUM(BindModes)
28
29 Q_INVOKABLE void spektrumBindMode(int mode);
30 Q_INVOKABLE void crsfBindMode();
31
32 // Overrides from RemoteControlCalibrationController
33 void start() final override;
34
35signals:
37 void throttleReversedCalFailure();
38
39private:
40 QString _stickFunctionToParamName(RemoteControlCalibrationController::StickFunction function) const;
41 bool _channelReversedParamValue(int channel);
42 void _setChannelReversedParamValue(int channel, bool reversed);
43
44 // Overrides from RemoteControlCalibrationController
45 void _saveStoredCalibrationValues() override;
46 void _readStoredCalibrationValues() override;
47
48 QString _revParamFormat;
49 bool _revParamIsBool = false;
50};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
Controller class for RC Transmitter calibration.
Abstract base class for calibrating RC and Joystick controller.