1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

OP-1728 Fix output value

This commit is contained in:
Laurent Lalanne 2015-02-18 01:50:38 +01:00
parent 4b24707f82
commit ee3efc535e

View File

@ -309,8 +309,11 @@ void OutputChannelForm::reverseChannel(bool state)
ui.actuatorMax->setValue(ui.actuatorMin->value());
ui.actuatorMin->setValue(temp);
ui.actuatorNeutral->setInvertedAppearance(state);
setChannelRange();
return;
}
}
/**
@ -327,10 +330,6 @@ void OutputChannelForm::sendChannelTest(int value)
return;
}
if (ui.actuatorRev->isChecked()) {
// the channel is reversed
value = ui.actuatorMin->value() - value + ui.actuatorMax->value();
}
// update the label
ui.actuatorValue->setValue(value);