|
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 305 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 748 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 1292 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 1492 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 1399 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis1, stickFunctionAdditionalAxis2, stickFunctionAdditionalAxis3, stickFunctionAdditionalAxis4, stickFunctionAdditionalAxis5, stickFunctionAdditionalAxis6, stickFunctionPitch, stickFunctionPitchExtension, stickFunctionRoll, stickFunctionRollExtension, stickFunctionThrottle, and stickFunctionYaw.
|
protected |
Definition at line 769 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 1092 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis1.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::additionalAxis1ChannelReversed | ( | ) |
Definition at line 1208 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 1354 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis1.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis1Enabled | ( | ) |
Definition at line 1142 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionAdditionalAxis1.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis2ChannelMapped | ( | ) |
Definition at line 1097 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis2.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::additionalAxis2ChannelReversed | ( | ) |
Definition at line 1217 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 1359 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis2.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis2Enabled | ( | ) |
Definition at line 1147 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionAdditionalAxis2.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis3ChannelMapped | ( | ) |
Definition at line 1102 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis3.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::additionalAxis3ChannelReversed | ( | ) |
Definition at line 1226 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 1364 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis3.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis3Enabled | ( | ) |
Definition at line 1152 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionAdditionalAxis3.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis4ChannelMapped | ( | ) |
Definition at line 1107 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis4.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::additionalAxis4ChannelReversed | ( | ) |
Definition at line 1235 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 1369 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis4.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis4Enabled | ( | ) |
Definition at line 1157 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionAdditionalAxis4.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis5ChannelMapped | ( | ) |
Definition at line 1112 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis5.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::additionalAxis5ChannelReversed | ( | ) |
Definition at line 1244 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 1374 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis5.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis5Enabled | ( | ) |
Definition at line 1162 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionAdditionalAxis5.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis6ChannelMapped | ( | ) |
Definition at line 1117 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis6.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::additionalAxis6ChannelReversed | ( | ) |
Definition at line 1253 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 1379 of file RemoteControlCalibrationController.cc.
References stickFunctionAdditionalAxis6.
|
signal |
| bool RemoteControlCalibrationController::additionalAxis6Enabled | ( | ) |
Definition at line 1167 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionAdditionalAxis6.
|
signal |
| int RemoteControlCalibrationController::adjustedAdditionalAxis1ChannelValue | ( | ) |
Definition at line 1012 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis1.
|
signal |
| int RemoteControlCalibrationController::adjustedAdditionalAxis2ChannelValue | ( | ) |
Definition at line 1022 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis2.
|
signal |
| int RemoteControlCalibrationController::adjustedAdditionalAxis3ChannelValue | ( | ) |
Definition at line 1032 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis3.
|
signal |
| int RemoteControlCalibrationController::adjustedAdditionalAxis4ChannelValue | ( | ) |
Definition at line 1042 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis4.
|
signal |
| int RemoteControlCalibrationController::adjustedAdditionalAxis5ChannelValue | ( | ) |
Definition at line 1052 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis5.
|
signal |
| int RemoteControlCalibrationController::adjustedAdditionalAxis6ChannelValue | ( | ) |
Definition at line 1062 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionAdditionalAxis6.
|
signal |
| int RemoteControlCalibrationController::adjustedPitchChannelValue | ( | ) |
Definition at line 962 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionPitch.
|
signal |
| int RemoteControlCalibrationController::adjustedPitchExtensionChannelValue | ( | ) |
Definition at line 1002 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionPitchExtension.
|
signal |
| int RemoteControlCalibrationController::adjustedRollChannelValue | ( | ) |
Definition at line 952 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionRoll.
|
signal |
| int RemoteControlCalibrationController::adjustedRollExtensionChannelValue | ( | ) |
Definition at line 992 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionRollExtension.
|
signal |
| int RemoteControlCalibrationController::adjustedThrottleChannelValue | ( | ) |
Definition at line 982 of file RemoteControlCalibrationController.cc.
References _calCenterPoint, _chanMax, _rgChannelInfo, _rgFunctionChannelMapping, and stickFunctionThrottle.
|
signal |
| int RemoteControlCalibrationController::adjustedYawChannelValue | ( | ) |
Definition at line 972 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 499 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 1394 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 473 of file RemoteControlCalibrationController.cc.
References _chanCount, _chanMinimum, and QGC::showAppMessage().
| void RemoteControlCalibrationController::oneSidedButtonClicked | ( | ) |
Definition at line 490 of file RemoteControlCalibrationController.cc.
References oneSidedButtonVisible().
| bool RemoteControlCalibrationController::oneSidedButtonVisible | ( | ) | const |
Definition at line 894 of file RemoteControlCalibrationController.cc.
Referenced by oneSidedButtonClicked().
|
signal |
| bool RemoteControlCalibrationController::pitchChannelMapped | ( | ) |
Definition at line 1077 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionPitch.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::pitchChannelReversed | ( | ) |
Definition at line 1181 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 1339 of file RemoteControlCalibrationController.cc.
References stickFunctionPitch.
|
signal |
| bool RemoteControlCalibrationController::pitchExtensionChannelMapped | ( | ) |
Definition at line 1087 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionPitchExtension.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::pitchExtensionChannelReversed | ( | ) |
Definition at line 1199 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 1349 of file RemoteControlCalibrationController.cc.
References stickFunctionPitchExtension.
|
signal |
| bool RemoteControlCalibrationController::pitchExtensionEnabled | ( | ) |
Definition at line 1132 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionPitchExtension.
|
signal |
|
signal |
| bool RemoteControlCalibrationController::rollChannelMapped | ( | ) |
Definition at line 1072 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionRoll.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::rollChannelReversed | ( | ) |
Definition at line 1172 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 1334 of file RemoteControlCalibrationController.cc.
References stickFunctionRoll.
|
signal |
| bool RemoteControlCalibrationController::rollExtensionChannelMapped | ( | ) |
Definition at line 1082 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionRollExtension.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::rollExtensionChannelReversed | ( | ) |
Definition at line 1190 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 1344 of file RemoteControlCalibrationController.cc.
References stickFunctionRollExtension.
|
signal |
| bool RemoteControlCalibrationController::rollExtensionEnabled | ( | ) |
Definition at line 1137 of file RemoteControlCalibrationController.cc.
References _stickFunctionEnabled(), and stickFunctionRollExtension.
|
signal |
| void RemoteControlCalibrationController::setCenteredThrottle | ( | bool | centered | ) |
Definition at line 1431 of file RemoteControlCalibrationController.cc.
References centeredThrottleChanged().
Referenced by setJoystickMode().
| void RemoteControlCalibrationController::setJoystickMode | ( | bool | joystickMode | ) |
Definition at line 1439 of file RemoteControlCalibrationController.cc.
References joystickMode(), joystickModeChanged(), and setCenteredThrottle().
| void RemoteControlCalibrationController::setTransmitterMode | ( | int | mode | ) |
Definition at line 1280 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 312 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 1127 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionThrottle.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::throttleChannelReversed | ( | ) |
Definition at line 1271 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 1389 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 1122 of file RemoteControlCalibrationController.cc.
References _chanMax, _rgFunctionChannelMapping, and stickFunctionYaw.
Referenced by _signalAllAttitudeValueChanges().
|
signal |
Referenced by _signalAllAttitudeValueChanges().
| bool RemoteControlCalibrationController::yawChannelReversed | ( | ) |
Definition at line 1262 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 1384 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.