Commit 627025d8 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #3746 from DonLakeFlyer/ReverseThrottle

Radio Cal: Fix reverse throttle check
parents 704655ce de6ea50f
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment