Browse Source

Merge pull request #4370 from DonLakeFlyer/RadioCalPX4

Radio Cal: Allow reverse setting for PX4
QGC4.4
Don Gagne 8 years ago committed by GitHub
parent
commit
263073677d
  1. 4
      src/AutoPilotPlugins/Common/RadioComponentController.cc

4
src/AutoPilotPlugins/Common/RadioComponentController.cc

@ -743,8 +743,8 @@ void RadioComponentController::_writeCalibration(void) @@ -743,8 +743,8 @@ void RadioComponentController::_writeCalibration(void)
}
// For multi-rotor we can determine reverse setting during radio cal. For anything other than multi-rotor, servo installation
// may affect channel reversing so we can't automatically determine it.
if (_vehicle->multiRotor()) {
// may affect channel reversing so we can't automatically determine it. This is ok for PX4 given how it uses mixers, but not for ArduPilot.
if (_vehicle->px4Firmware() || _vehicle->multiRotor()) {
// APM multi-rotor has a backwards interpretation of "reversed" on the Pitch control. So be careful.
float reversedParamValue;
if (_px4Vehicle() || info->function != rcCalFunctionPitch) {

Loading…
Cancel
Save