|
QGroundControl
Ground Control Station for MAVLink Drones
|
Controller class for RC Transmitter calibration. More...
#include <RadioComponentController.h>
Inheritance diagram for RadioComponentController:
Collaboration diagram for RadioComponentController:Public Types | |
| enum | BindModes { DSM2 , DSMX7 , DSMX8 } |
Public Member Functions | |
| RadioComponentController (QObject *parent=nullptr) | |
| ~RadioComponentController () | |
| void | spektrumBindMode (int mode) |
| void | crsfBindMode () |
| void | start () final override |
Additional Inherited Members | |
Public Slots inherited from RemoteControlCalibrationController | |
| void | rawChannelValuesChanged (QVector< int > channelValues) |
Protected Member Functions inherited from RemoteControlCalibrationController | |
| void | _validateAndAdjustCalibrationValues () |
| QString | _stickFunctionToString (StickFunction stickFunction) |
| void | _signalAllAttitudeValueChanges () |
| void | _resetInternalCalibrationValues () |
| Resets internal calibration values to their initial state in preparation for a new calibration sequence. | |
| virtual bool | _stickFunctionEnabled (StickFunction stickFunction) |
| Returns true if the stick function is enabled. | |
Protected Member Functions inherited from FactPanelController | |
| bool | _allParametersExists (int componentId, const QStringList &names) const |
| void | _reportMissingParameter (int componentId, const QString &name) const |
| Report a missing parameter. | |
Protected Attributes inherited from RemoteControlCalibrationController | |
| ChannelInfo | _rgChannelInfo [_chanMax] |
| Information associated with each rc channel. | |
| int | _calValidMinValue |
| Largest valid minimum channel range value. | |
| int | _calValidMaxValue |
| Smallest valid maximum channel range value. | |
| int | _calCenterPoint |
| Center point for calibration. | |
| int | _calDefaultMinValue |
| Default value for Min if not set. | |
| int | _calDefaultMaxValue |
| Default value for Max if not set. | |
| int | _calRoughCenterDelta |
| Delta around center point which is considered to be roughly centered. | |
| int | _calMoveDelta |
| Amount of delta past center which is considered stick movement. | |
| int | _calSettleDelta |
| Amount of delta which is considered no stick movement. | |
| int | _stickDetectSettleMSecs = 1000 |
| Time in ms stick must be stable before detection completes. | |
| int | _chanCount = 0 |
| Number of actual rc channels available. | |
| int | _rgFunctionChannelMapping [stickFunctionMax] |
| Maps from StickFunction to channel index. _chanMax indicates channel not set for this function. | |
Protected Attributes inherited from FactPanelController | |
| Vehicle * | _vehicle = nullptr |
Static Protected Attributes inherited from RemoteControlCalibrationController | |
| static constexpr int | _chanMax = QGCMAVLink::maxRcChannels |
| A set of information associated with a radio channel. | |
| static constexpr int | _chanMinimum = 4 |
| Minimum numner of channels required to run. | |
Controller class for RC Transmitter calibration.
Definition at line 11 of file RadioComponentController.h.
| Enumerator | |
|---|---|
| DSM2 | |
| DSMX7 | |
| DSMX8 | |
Definition at line 22 of file RadioComponentController.h.
| RadioComponentController::RadioComponentController | ( | QObject * | parent = nullptr | ) |
Definition at line 13 of file RadioComponentController.cc.
References QGCMAVLink::CalibrationRadio, and ParameterManager::defaultComponentId.
| RadioComponentController::~RadioComponentController | ( | ) |
Definition at line 46 of file RadioComponentController.cc.
References FactPanelController::_vehicle, Vehicle::px4Firmware(), and Vehicle::stopCalibration().
| void RadioComponentController::crsfBindMode | ( | ) |
Definition at line 68 of file RadioComponentController.cc.
References FactPanelController::_vehicle, and Vehicle::pairRX().
| void RadioComponentController::spektrumBindMode | ( | int | mode | ) |
Definition at line 63 of file RadioComponentController.cc.
References FactPanelController::_vehicle, and Vehicle::pairRX().
|
finaloverridevirtual |
Reimplemented from RemoteControlCalibrationController.
Definition at line 56 of file RadioComponentController.cc.
References FactPanelController::_vehicle, RemoteControlCalibrationController::rawChannelValuesChanged(), and Vehicle::rcChannelsChanged().
|
signal |
Signalled to indicate cal failure due to reversed throttle.