|
QGroundControl
Ground Control Station for MAVLink Drones
|
Abstract base class for calibrating RC and Joystick controller. More...
#include <RemoteControlCalibrationController.h>
Inheritance diagram for RemoteControlCalibrationController:
Collaboration diagram for RemoteControlCalibrationController:Classes | |
| struct | ChannelInfo |
Public Slots | |
| void | rawChannelValuesChanged (QVector< int > channelValues) |
Protected Member Functions | |
| 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 | |
| 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 | |
| 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. | |
Abstract base class for calibrating RC and Joystick controller.
Definition at line 15 of file RemoteControlCalibrationController.h.
|
protected |
Resets internal calibration values to their initial state in preparation for a new calibration sequence.
Definition at line 701 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, _signalAllAttitudeValueChanges(), RemoteControlCalibrationController::ChannelInfo::channelMax, RemoteControlCalibrationController::ChannelInfo::channelMin, RemoteControlCalibrationController::ChannelInfo::channelReversed, RemoteControlCalibrationController::ChannelInfo::channelTrim, RemoteControlCalibrationController::ChannelInfo::deadband, and RemoteControlCalibrationController::ChannelInfo::stickFunction.
|
protected |
Definition at line 1215 of file RemoteControlCalibrationController.cc.
References aux1ExtensionChannelMappedChanged(), aux1ExtensionChannelReversedChanged(), aux2ExtensionChannelMappedChanged(), aux2ExtensionChannelReversedChanged(), aux3ExtensionChannelMappedChanged(), aux3ExtensionChannelReversedChanged(), aux4ExtensionChannelMappedChanged(), aux4ExtensionChannelReversedChanged(), aux5ExtensionChannelMappedChanged(), aux5ExtensionChannelReversedChanged(), aux6ExtensionChannelMappedChanged(), aux6ExtensionChannelReversedChanged(), pitchChannelMappedChanged(), pitchChannelReversedChanged(), pitchExtensionChannelMappedChanged(), pitchExtensionChannelReversedChanged(), rollChannelMappedChanged(), rollChannelReversedChanged(), rollExtensionChannelMappedChanged(), rollExtensionChannelReversedChanged(), throttleChannelMappedChanged(), throttleChannelReversedChanged(), yawChannelMappedChanged(), and yawChannelReversedChanged().
Referenced by _resetInternalCalibrationValues().
|
protectedvirtual |
Returns true if the stick function is enabled.
Definition at line 1415 of file RemoteControlCalibrationController.cc.
|
protected |
Definition at line 1322 of file RemoteControlCalibrationController.cc.
|
protected |
Definition at line 722 of file RemoteControlCalibrationController.cc.
References _calDefaultMaxValue, _calDefaultMinValue, _calValidMaxValue, _calValidMinValue, _chanCount, _chanMax, _rgChannelInfo, and RemoteControlCalibrationController::ChannelInfo::channelMin.
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
|
signal |
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
|
signal |
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
|
signal |
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
|
signal |
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
|
signal |
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
Referenced by rawChannelValuesChanged().
|
signal |
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
|
signal |
|
signal |
Referenced by rawChannelValuesChanged().
|
slot |
Super class must call this when the raw channel values change
| channelValues | The current channel values |
Definition at line 392 of file RemoteControlCalibrationController.cc.
References _chanCount, _chanMax, _rgChannelInfo, adjustedAux1ExtensionChannelValueChanged(), adjustedAux2ExtensionChannelValueChanged(), adjustedAux3ExtensionChannelValueChanged(), adjustedAux4ExtensionChannelValueChanged(), adjustedAux5ExtensionChannelValueChanged(), adjustedAux6ExtensionChannelValueChanged(), adjustedPitchChannelValueChanged(), adjustedPitchExtensionChannelValueChanged(), adjustedRollChannelValueChanged(), adjustedRollExtensionChannelValueChanged(), adjustedThrottleChannelValueChanged(), adjustedYawChannelValueChanged(), channelCountChanged(), rawChannelValueChanged(), and RemoteControlCalibrationController::ChannelInfo::stickFunction.
Referenced by RadioComponentController::start().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
|
signal |
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
|
signal |
|
protected |
Center point for calibration.
Definition at line 281 of file RemoteControlCalibrationController.h.
Referenced by _resetInternalCalibrationValues().
|
protected |
Default value for Max if not set.
Definition at line 283 of file RemoteControlCalibrationController.h.
Referenced by _validateAndAdjustCalibrationValues().
|
protected |
Default value for Min if not set.
Definition at line 282 of file RemoteControlCalibrationController.h.
Referenced by _validateAndAdjustCalibrationValues().
|
protected |
Amount of delta past center which is considered stick movement.
Definition at line 285 of file RemoteControlCalibrationController.h.
|
protected |
Delta around center point which is considered to be roughly centered.
Definition at line 284 of file RemoteControlCalibrationController.h.
|
protected |
Amount of delta which is considered no stick movement.
Definition at line 286 of file RemoteControlCalibrationController.h.
|
protected |
Smallest valid maximum channel range value.
Definition at line 280 of file RemoteControlCalibrationController.h.
Referenced by _validateAndAdjustCalibrationValues().
|
protected |
Largest valid minimum channel range value.
Definition at line 279 of file RemoteControlCalibrationController.h.
Referenced by _validateAndAdjustCalibrationValues().
|
protected |
Number of actual rc channels available.
Definition at line 289 of file RemoteControlCalibrationController.h.
Referenced by _validateAndAdjustCalibrationValues(), and rawChannelValuesChanged().
|
staticconstexprprotected |
A set of information associated with a radio channel.
Maximum number of supported channels by this implementation
Definition at line 267 of file RemoteControlCalibrationController.h.
Referenced by _resetInternalCalibrationValues(), _validateAndAdjustCalibrationValues(), and rawChannelValuesChanged().
|
staticconstexprprotected |
Minimum numner of channels required to run.
Definition at line 290 of file RemoteControlCalibrationController.h.
|
protected |
Information associated with each rc channel.
Definition at line 276 of file RemoteControlCalibrationController.h.
Referenced by _resetInternalCalibrationValues(), _validateAndAdjustCalibrationValues(), and rawChannelValuesChanged().
|
protected |
Maps from StickFunction to channel index. _chanMax indicates channel not set for this function.
Definition at line 293 of file RemoteControlCalibrationController.h.
Referenced by _resetInternalCalibrationValues().
|
protected |
Time in ms stick must be stable before detection completes.
Definition at line 287 of file RemoteControlCalibrationController.h.