|
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 Types | |
| enum | StickFunction { stickFunctionRoll , stickFunctionPitch , stickFunctionYaw , stickFunctionThrottle , stickFunctionMaxRadio , stickFunctionPitchExtension = stickFunctionMaxRadio , stickFunctionRollExtension , stickFunctionAdditionalAxis1 , stickFunctionAdditionalAxis2 , stickFunctionAdditionalAxis3 , stickFunctionAdditionalAxis4 , stickFunctionAdditionalAxis5 , stickFunctionAdditionalAxis6 , stickFunctionMax } |
| These identify the various controls functions. They are also used as indices into the _rgFunctioInfo array. More... | |
Public Slots | |
| void | _rawChannelValuesChanged (QVector< int > channelValues) |
| void | _clampedChannelValuesChanged (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 12 of file RemoteControlCalibrationController.h.
These identify the various controls functions. They are also used as indices into the _rgFunctioInfo array.
Definition at line 98 of file RemoteControlCalibrationController.h.
| RemoteControlCalibrationController::RemoteControlCalibrationController | ( | QObject * | parent = nullptr | ) |
Definition at line 40 of file RemoteControlCalibrationController.cc.
| RemoteControlCalibrationController::~RemoteControlCalibrationController | ( | ) |
Definition at line 304 of file RemoteControlCalibrationController.cc.
|
inlineslot |
Definition at line 260 of file RemoteControlCalibrationController.h.
Referenced by RadioComponentController::start().
|
inlineslot |
Definition at line 259 of file RemoteControlCalibrationController.h.
|
protected |
Resets internal calibration values to their initial state in preparation for a new calibration sequence.
Definition at line 747 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, RemoteControlCalibrationController::ChannelInfo::stickFunction, and stickFunctionMax.
|
protected |
Definition at line 1291 of file RemoteControlCalibrationController.cc.
References additionalAxis1ChannelMapped(), additionalAxis1ChannelMappedChanged(), additionalAxis1ChannelReversed(), additionalAxis1ChannelReversedChanged(), additionalAxis2ChannelMapped(), additionalAxis2ChannelMappedChanged(), additionalAxis2ChannelReversed(), additionalAxis2ChannelReversedChanged(), additionalAxis3ChannelMapped(), additionalAxis3ChannelMappedChanged(), additionalAxis3ChannelReversed(), additionalAxis3ChannelReversedChanged(), additionalAxis4ChannelMapped(), additionalAxis4ChannelMappedChanged(), additionalAxis4ChannelReversed(), additionalAxis4ChannelReversedChanged(), additionalAxis5ChannelMapped(), additionalAxis5ChannelMappedChanged(), additionalAxis5ChannelReversed(), additionalAxis5ChannelReversedChanged(), additionalAxis6ChannelMapped(), additionalAxis6ChannelMappedChanged(), additionalAxis6ChannelReversed(), additionalAxis6ChannelReversedChanged(), pitchChannelMapped(), pitchChannelMappedChanged(), pitchChannelReversed(), pitchChannelReversedChanged(), pitchExtensionChannelMapped(), pitchExtensionChannelMappedChanged(), pitchExtensionChannelReversed(), pitchExtensionChannelReversedChanged(), rollChannelMapped(), rollChannelMappedChanged(), rollChannelReversed(), rollChannelReversedChanged(), rollExtensionChannelMapped(), rollExtensionChannelMappedChanged(), rollExtensionChannelReversed(), rollExtensionChannelReversedChanged(), stickFunctionAdditionalAxis1, stickFunctionAdditionalAxis2, stickFunctionAdditionalAxis3, stickFunctionAdditionalAxis4, stickFunctionAdditionalAxis5, stickFunctionAdditionalAxis6, stickFunctionPitch, stickFunctionPitchExtension, stickFunctionRoll, stickFunctionRollExtension, stickFunctionThrottle, stickFunctionYaw, throttleChannelMapped(), throttleChannelMappedChanged(), throttleChannelReversed(), throttleChannelReversedChanged(), yawChannelMapped(), yawChannelMappedChanged(), yawChannelReversed(), and yawChannelReversedChanged().
Referenced by _resetInternalCalibrationValues().
|
protectedvirtual |
Returns true if the stick function is enabled.
Definition at line 1491 of file RemoteControlCalibrationController.cc.
References stickFunctionPitch, stickFunctionRoll, stickFunctionThrottle, and stickFunctionYaw.
Referenced by additionalAxis1Enabled(), additionalAxis2Enabled(), additionalAxis3Enabled(), additionalAxis4Enabled(), additionalAxis5Enabled(), additionalAxis6Enabled(), pitchExtensionEnabled(), and rollExtensionEnabled().
|
protected |
Definition at line 1398 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis1, stickFunctionAdditionalAxis2, stickFunctionAdditionalAxis3, stickFunctionAdditionalAxis4, stickFunctionAdditionalAxis5, stickFunctionAdditionalAxis6, stickFunctionPitch, stickFunctionPitchExtension, stickFunctionRoll, stickFunctionRollExtension, stickFunctionThrottle, and stickFunctionYaw.
|
protected |
Definition at line 768 of file RemoteControlCalibrationController.cc.
References _calDefaultMaxValue, _calDefaultMinValue, _calValidMaxValue, _calValidMinValue, _chanCount, _chanMax, _rgChannelInfo, RemoteControlCalibrationController::ChannelInfo::stickFunction, stickFunctionAdditionalAxis1, stickFunctionAdditionalAxis2, stickFunctionAdditionalAxis3, stickFunctionAdditionalAxis4, stickFunctionAdditionalAxis5, stickFunctionAdditionalAxis6, stickFunctionMax, stickFunctionPitch, stickFunctionPitchExtension, stickFunctionRoll, stickFunctionRollExtension, stickFunctionThrottle, and stickFunctionYaw.
| bool RemoteControlCalibrationController::additionalAxis1ChannelMapped | ( | ) |
Definition at line 1091 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis1.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::additionalAxis1ChannelReversed | ( | ) |
Definition at line 1207 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, RemoteControlCalibrationController::ChannelInfo::channelReversed, and stickFunctionAdditionalAxis1.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| int RemoteControlCalibrationController::additionalAxis1Deadband | ( | ) |
Definition at line 1353 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis1.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis1Enabled | ( | ) |
Definition at line 1141 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionAdditionalAxis1.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis2ChannelMapped | ( | ) |
Definition at line 1096 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis2.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::additionalAxis2ChannelReversed | ( | ) |
Definition at line 1216 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, RemoteControlCalibrationController::ChannelInfo::channelReversed, and stickFunctionAdditionalAxis2.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| int RemoteControlCalibrationController::additionalAxis2Deadband | ( | ) |
Definition at line 1358 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis2.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis2Enabled | ( | ) |
Definition at line 1146 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionAdditionalAxis2.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis3ChannelMapped | ( | ) |
Definition at line 1101 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis3.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::additionalAxis3ChannelReversed | ( | ) |
Definition at line 1225 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, RemoteControlCalibrationController::ChannelInfo::channelReversed, and stickFunctionAdditionalAxis3.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| int RemoteControlCalibrationController::additionalAxis3Deadband | ( | ) |
Definition at line 1363 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis3.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis3Enabled | ( | ) |
Definition at line 1151 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionAdditionalAxis3.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis4ChannelMapped | ( | ) |
Definition at line 1106 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis4.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::additionalAxis4ChannelReversed | ( | ) |
Definition at line 1234 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, RemoteControlCalibrationController::ChannelInfo::channelReversed, and stickFunctionAdditionalAxis4.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| int RemoteControlCalibrationController::additionalAxis4Deadband | ( | ) |
Definition at line 1368 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis4.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis4Enabled | ( | ) |
Definition at line 1156 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionAdditionalAxis4.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis5ChannelMapped | ( | ) |
Definition at line 1111 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis5.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::additionalAxis5ChannelReversed | ( | ) |
Definition at line 1243 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, RemoteControlCalibrationController::ChannelInfo::channelReversed, and stickFunctionAdditionalAxis5.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| int RemoteControlCalibrationController::additionalAxis5Deadband | ( | ) |
Definition at line 1373 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis5.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis5Enabled | ( | ) |
Definition at line 1161 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionAdditionalAxis5.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis6ChannelMapped | ( | ) |
Definition at line 1116 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis6.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::additionalAxis6ChannelReversed | ( | ) |
Definition at line 1252 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, RemoteControlCalibrationController::ChannelInfo::channelReversed, and stickFunctionAdditionalAxis6.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| int RemoteControlCalibrationController::additionalAxis6Deadband | ( | ) |
Definition at line 1378 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis6.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis6Enabled | ( | ) |
Definition at line 1166 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionAdditionalAxis6.
|
signal |
| int RemoteControlCalibrationController::adjustedAdditionalAxis1ChannelValue | ( | ) |
Definition at line 1011 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis1.
|
signal |
| int RemoteControlCalibrationController::adjustedAdditionalAxis2ChannelValue | ( | ) |
Definition at line 1021 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis2.
|
signal |
| int RemoteControlCalibrationController::adjustedAdditionalAxis3ChannelValue | ( | ) |
Definition at line 1031 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis3.
|
signal |
| int RemoteControlCalibrationController::adjustedAdditionalAxis4ChannelValue | ( | ) |
Definition at line 1041 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis4.
|
signal |
| int RemoteControlCalibrationController::adjustedAdditionalAxis5ChannelValue | ( | ) |
Definition at line 1051 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis5.
|
signal |
| int RemoteControlCalibrationController::adjustedAdditionalAxis6ChannelValue | ( | ) |
Definition at line 1061 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis6.
|
signal |
| int RemoteControlCalibrationController::adjustedPitchChannelValue | ( | ) |
Definition at line 961 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionPitch.
|
signal |
| int RemoteControlCalibrationController::adjustedPitchExtensionChannelValue | ( | ) |
Definition at line 1001 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionPitchExtension.
|
signal |
| int RemoteControlCalibrationController::adjustedRollChannelValue | ( | ) |
Definition at line 951 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionRoll.
|
signal |
| int RemoteControlCalibrationController::adjustedRollExtensionChannelValue | ( | ) |
Definition at line 991 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionRollExtension.
|
signal |
| int RemoteControlCalibrationController::adjustedThrottleChannelValue | ( | ) |
Definition at line 981 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionThrottle.
|
signal |
| int RemoteControlCalibrationController::adjustedYawChannelValue | ( | ) |
Definition at line 971 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionYaw.
|
signal |
|
inline |
Definition at line 182 of file RemoteControlCalibrationController.h.
|
signal |
|
signal |
| void RemoteControlCalibrationController::cancelButtonClicked | ( | ) |
Definition at line 498 of file RemoteControlCalibrationController.cc.
|
inline |
Definition at line 180 of file RemoteControlCalibrationController.h.
|
signal |
Referenced by setCenteredThrottle().
|
inline |
Definition at line 177 of file RemoteControlCalibrationController.h.
References _chanCount.
|
signal |
| void RemoteControlCalibrationController::copyTrims | ( | ) |
Definition at line 1393 of file RemoteControlCalibrationController.cc.
References FactPanelController::_vehicle, QGCMAVLink::CalibrationCopyTrims, and Vehicle::startCalibration().
|
inline |
Definition at line 181 of file RemoteControlCalibrationController.h.
Referenced by setJoystickMode().
|
signal |
Referenced by setJoystickMode().
| void RemoteControlCalibrationController::nextButtonClicked | ( | ) |
Definition at line 472 of file RemoteControlCalibrationController.cc.
References _chanCount, _chanMinimum, and QGC::showAppMessage().
| void RemoteControlCalibrationController::oneSidedButtonClicked | ( | ) |
Definition at line 489 of file RemoteControlCalibrationController.cc.
References oneSidedButtonVisible().
| bool RemoteControlCalibrationController::oneSidedButtonVisible | ( | ) | const |
Definition at line 893 of file RemoteControlCalibrationController.cc.
Referenced by oneSidedButtonClicked().
|
signal |
| bool RemoteControlCalibrationController::pitchChannelMapped | ( | ) |
Definition at line 1076 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionPitch.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::pitchChannelReversed | ( | ) |
Definition at line 1180 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, RemoteControlCalibrationController::ChannelInfo::channelReversed, and stickFunctionPitch.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| int RemoteControlCalibrationController::pitchDeadband | ( | ) |
Definition at line 1338 of file RemoteControlCalibrationController.cc.
References stickFunctionPitch.
|
signal |
| bool RemoteControlCalibrationController::pitchExtensionChannelMapped | ( | ) |
Definition at line 1086 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionPitchExtension.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::pitchExtensionChannelReversed | ( | ) |
Definition at line 1198 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, RemoteControlCalibrationController::ChannelInfo::channelReversed, and stickFunctionPitchExtension.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| int RemoteControlCalibrationController::pitchExtensionDeadband | ( | ) |
Definition at line 1348 of file RemoteControlCalibrationController.cc.
References stickFunctionPitchExtension.
|
signal |
| bool RemoteControlCalibrationController::pitchExtensionEnabled | ( | ) |
Definition at line 1131 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionPitchExtension.
|
signal |
|
signal |
| bool RemoteControlCalibrationController::rollChannelMapped | ( | ) |
Definition at line 1071 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionRoll.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::rollChannelReversed | ( | ) |
Definition at line 1171 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, RemoteControlCalibrationController::ChannelInfo::channelReversed, and stickFunctionRoll.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| int RemoteControlCalibrationController::rollDeadband | ( | ) |
Definition at line 1333 of file RemoteControlCalibrationController.cc.
References stickFunctionRoll.
|
signal |
| bool RemoteControlCalibrationController::rollExtensionChannelMapped | ( | ) |
Definition at line 1081 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionRollExtension.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::rollExtensionChannelReversed | ( | ) |
Definition at line 1189 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, RemoteControlCalibrationController::ChannelInfo::channelReversed, and stickFunctionRollExtension.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| int RemoteControlCalibrationController::rollExtensionDeadband | ( | ) |
Definition at line 1343 of file RemoteControlCalibrationController.cc.
References stickFunctionRollExtension.
|
signal |
| bool RemoteControlCalibrationController::rollExtensionEnabled | ( | ) |
Definition at line 1136 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionRollExtension.
|
signal |
| void RemoteControlCalibrationController::setCenteredThrottle | ( | bool | centered | ) |
Definition at line 1430 of file RemoteControlCalibrationController.cc.
References centeredThrottleChanged().
Referenced by setJoystickMode().
| void RemoteControlCalibrationController::setJoystickMode | ( | bool | joystickMode | ) |
Definition at line 1438 of file RemoteControlCalibrationController.cc.
References joystickMode(), joystickModeChanged(), and setCenteredThrottle().
| void RemoteControlCalibrationController::setTransmitterMode | ( | int | mode | ) |
Definition at line 1279 of file RemoteControlCalibrationController.cc.
References transmitterModeChanged().
|
inline |
Definition at line 183 of file RemoteControlCalibrationController.h.
|
signal |
|
virtual |
Reimplemented in RadioComponentController, and JoystickConfigController.
Definition at line 311 of file RemoteControlCalibrationController.cc.
Referenced by RadioComponentController::start(), and JoystickConfigController::start().
|
inline |
Definition at line 179 of file RemoteControlCalibrationController.h.
|
signal |
| bool RemoteControlCalibrationController::throttleChannelMapped | ( | ) |
Definition at line 1126 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionThrottle.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::throttleChannelReversed | ( | ) |
Definition at line 1270 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, RemoteControlCalibrationController::ChannelInfo::channelReversed, and stickFunctionThrottle.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| int RemoteControlCalibrationController::throttleDeadband | ( | ) |
Definition at line 1388 of file RemoteControlCalibrationController.cc.
References stickFunctionThrottle.
|
signal |
|
inline |
Definition at line 178 of file RemoteControlCalibrationController.h.
|
signal |
Referenced by setTransmitterMode().
| bool RemoteControlCalibrationController::yawChannelMapped | ( | ) |
Definition at line 1121 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionYaw.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::yawChannelReversed | ( | ) |
Definition at line 1261 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, RemoteControlCalibrationController::ChannelInfo::channelReversed, and stickFunctionYaw.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| int RemoteControlCalibrationController::yawDeadband | ( | ) |
Definition at line 1383 of file RemoteControlCalibrationController.cc.
References stickFunctionYaw.
|
signal |
|
protected |
Center point for calibration.
Definition at line 278 of file RemoteControlCalibrationController.h.
Referenced by _resetInternalCalibrationValues(), adjustedAdditionalAxis1ChannelValue(), adjustedAdditionalAxis2ChannelValue(), adjustedAdditionalAxis3ChannelValue(), adjustedAdditionalAxis4ChannelValue(), adjustedAdditionalAxis5ChannelValue(), adjustedAdditionalAxis6ChannelValue(), adjustedPitchChannelValue(), adjustedPitchExtensionChannelValue(), adjustedRollChannelValue(), adjustedRollExtensionChannelValue(), adjustedThrottleChannelValue(), and adjustedYawChannelValue().
|
protected |
Default value for Max if not set.
Definition at line 280 of file RemoteControlCalibrationController.h.
Referenced by _validateAndAdjustCalibrationValues().
|
protected |
Default value for Min if not set.
Definition at line 279 of file RemoteControlCalibrationController.h.
Referenced by _validateAndAdjustCalibrationValues().
|
protected |
Amount of delta past center which is considered stick movement.
Definition at line 282 of file RemoteControlCalibrationController.h.
|
protected |
Delta around center point which is considered to be roughly centered.
Definition at line 281 of file RemoteControlCalibrationController.h.
|
protected |
Amount of delta which is considered no stick movement.
Definition at line 283 of file RemoteControlCalibrationController.h.
|
protected |
Smallest valid maximum channel range value.
Definition at line 277 of file RemoteControlCalibrationController.h.
Referenced by _validateAndAdjustCalibrationValues().
|
protected |
Largest valid minimum channel range value.
Definition at line 276 of file RemoteControlCalibrationController.h.
Referenced by _validateAndAdjustCalibrationValues().
|
protected |
Number of actual rc channels available.
Definition at line 286 of file RemoteControlCalibrationController.h.
Referenced by _validateAndAdjustCalibrationValues(), channelCount(), and nextButtonClicked().
|
staticconstexprprotected |
A set of information associated with a radio channel.
Maximum number of supported channels by this implementation
Definition at line 264 of file RemoteControlCalibrationController.h.
Referenced by _resetInternalCalibrationValues(), _validateAndAdjustCalibrationValues(), additionalAxis1ChannelMapped(), additionalAxis1ChannelReversed(), additionalAxis2ChannelMapped(), additionalAxis2ChannelReversed(), additionalAxis3ChannelMapped(), additionalAxis3ChannelReversed(), additionalAxis4ChannelMapped(), additionalAxis4ChannelReversed(), additionalAxis5ChannelMapped(), additionalAxis5ChannelReversed(), additionalAxis6ChannelMapped(), additionalAxis6ChannelReversed(), adjustedAdditionalAxis1ChannelValue(), adjustedAdditionalAxis2ChannelValue(), adjustedAdditionalAxis3ChannelValue(), adjustedAdditionalAxis4ChannelValue(), adjustedAdditionalAxis5ChannelValue(), adjustedAdditionalAxis6ChannelValue(), adjustedPitchChannelValue(), adjustedPitchExtensionChannelValue(), adjustedRollChannelValue(), adjustedRollExtensionChannelValue(), adjustedThrottleChannelValue(), adjustedYawChannelValue(), pitchChannelMapped(), pitchChannelReversed(), pitchExtensionChannelMapped(), pitchExtensionChannelReversed(), rollChannelMapped(), rollChannelReversed(), rollExtensionChannelMapped(), rollExtensionChannelReversed(), throttleChannelMapped(), throttleChannelReversed(), yawChannelMapped(), and yawChannelReversed().
|
staticconstexprprotected |
Minimum numner of channels required to run.
Definition at line 287 of file RemoteControlCalibrationController.h.
Referenced by nextButtonClicked().
|
protected |
Information associated with each rc channel.
Definition at line 273 of file RemoteControlCalibrationController.h.
Referenced by _resetInternalCalibrationValues(), _validateAndAdjustCalibrationValues(), additionalAxis1ChannelReversed(), additionalAxis2ChannelReversed(), additionalAxis3ChannelReversed(), additionalAxis4ChannelReversed(), additionalAxis5ChannelReversed(), additionalAxis6ChannelReversed(), adjustedAdditionalAxis1ChannelValue(), adjustedAdditionalAxis2ChannelValue(), adjustedAdditionalAxis3ChannelValue(), adjustedAdditionalAxis4ChannelValue(), adjustedAdditionalAxis5ChannelValue(), adjustedAdditionalAxis6ChannelValue(), adjustedPitchChannelValue(), adjustedPitchExtensionChannelValue(), adjustedRollChannelValue(), adjustedRollExtensionChannelValue(), adjustedThrottleChannelValue(), adjustedYawChannelValue(), pitchChannelReversed(), pitchExtensionChannelReversed(), rollChannelReversed(), rollExtensionChannelReversed(), throttleChannelReversed(), and yawChannelReversed().
|
protected |
Maps from StickFunction to channel index. _chanMax indicates channel not set for this function.
Definition at line 290 of file RemoteControlCalibrationController.h.
Referenced by _resetInternalCalibrationValues(), additionalAxis1ChannelMapped(), additionalAxis1ChannelReversed(), additionalAxis2ChannelMapped(), additionalAxis2ChannelReversed(), additionalAxis3ChannelMapped(), additionalAxis3ChannelReversed(), additionalAxis4ChannelMapped(), additionalAxis4ChannelReversed(), additionalAxis5ChannelMapped(), additionalAxis5ChannelReversed(), additionalAxis6ChannelMapped(), additionalAxis6ChannelReversed(), adjustedAdditionalAxis1ChannelValue(), adjustedAdditionalAxis2ChannelValue(), adjustedAdditionalAxis3ChannelValue(), adjustedAdditionalAxis4ChannelValue(), adjustedAdditionalAxis5ChannelValue(), adjustedAdditionalAxis6ChannelValue(), adjustedPitchChannelValue(), adjustedPitchExtensionChannelValue(), adjustedRollChannelValue(), adjustedRollExtensionChannelValue(), adjustedThrottleChannelValue(), adjustedYawChannelValue(), pitchChannelMapped(), pitchChannelReversed(), pitchExtensionChannelMapped(), pitchExtensionChannelReversed(), rollChannelMapped(), rollChannelReversed(), rollExtensionChannelMapped(), rollExtensionChannelReversed(), throttleChannelMapped(), throttleChannelReversed(), yawChannelMapped(), and yawChannelReversed().
|
protected |
Time in ms stick must be stable before detection completes.
Definition at line 284 of file RemoteControlCalibrationController.h.