Browse Source

Fix reverse throttle check

QGC4.4
Don Gagne 9 years ago
parent
commit
de6ea50f41
  1. 2
      src/AutoPilotPlugins/Common/RadioComponentController.cc

2
src/AutoPilotPlugins/Common/RadioComponentController.cc

@ -752,7 +752,7 @@ void RadioComponentController::_writeCalibration(void) @@ -752,7 +752,7 @@ void RadioComponentController::_writeCalibration(void)
_uas->stopCalibration();
}
if (!_px4Vehicle() && _rgChannelInfo[_rgFunctionChannelMapping[rcCalFunctionThrottle]].reversed) {
if (!_px4Vehicle() && (_vehicle->vehicleType() == MAV_TYPE_HELICOPTER || _vehicle->multiRotor()) && _rgChannelInfo[_rgFunctionChannelMapping[rcCalFunctionThrottle]].reversed) {
// A reversed throttle could lead to dangerous power up issues if the firmware doesn't handle it absolutely correctly in all places.
// So in this case fail the calibration for anything other than PX4 which is known to be able to handle this correctly.
emit throttleReversedCalFailure();

Loading…
Cancel
Save