Browse Source

Hotfix for sprung-loaded throttles and RC calibration: Enforce correct trim value

QGC4.4
Lorenz Meier 10 years ago
parent
commit
0577af2e94
  1. 7
      src/AutoPilotPlugins/PX4/RadioComponentController.cc

7
src/AutoPilotPlugins/PX4/RadioComponentController.cc

@ -428,6 +428,13 @@ void RadioComponentController::_inputStickMin(enum rcCalFunctions function, int
} else { } else {
_rgChannelInfo[channel].rcMin = value; _rgChannelInfo[channel].rcMin = value;
} }
// Check if this is throttle and set trim accordingly
if (function == rcCalFunctionThrottle) {
_rgChannelInfo[channel].rcTrim = value;
}
// XXX to support configs which can reverse they need to check a reverse
// flag here and not do this.
_advanceState(); _advanceState();
} }

Loading…
Cancel
Save