mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-10 18:24:11 +01:00
OP-1728 Remove unused code
This commit is contained in:
parent
745ada0781
commit
4b24707f82
@ -232,7 +232,6 @@ void OutputChannelForm::setChannelRange()
|
|||||||
{
|
{
|
||||||
int minValue = ui.actuatorMin->value();
|
int minValue = ui.actuatorMin->value();
|
||||||
int maxValue = ui.actuatorMax->value();
|
int maxValue = ui.actuatorMax->value();
|
||||||
int neutralValue = ui.actuatorValue->value();
|
|
||||||
|
|
||||||
int oldMini = ui.actuatorNeutral->minimum();
|
int oldMini = ui.actuatorNeutral->minimum();
|
||||||
int oldMaxi = ui.actuatorNeutral->maximum();
|
int oldMaxi = ui.actuatorNeutral->maximum();
|
||||||
@ -312,18 +311,6 @@ void OutputChannelForm::reverseChannel(bool state)
|
|||||||
ui.actuatorNeutral->setInvertedAppearance(state);
|
ui.actuatorNeutral->setInvertedAppearance(state);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Also update the channel value
|
|
||||||
// This is a trick to force the slider to update its value and
|
|
||||||
// emit the right signal itself, because our sendChannelTest(int) method
|
|
||||||
// relies on the object sender's identity.
|
|
||||||
if (ui.actuatorNeutral->value() < ui.actuatorNeutral->maximum()) {
|
|
||||||
ui.actuatorNeutral->setValue(ui.actuatorNeutral->value() + 1);
|
|
||||||
ui.actuatorNeutral->setValue(ui.actuatorNeutral->value() - 1);
|
|
||||||
} else {
|
|
||||||
ui.actuatorNeutral->setValue(ui.actuatorNeutral->value() - 1);
|
|
||||||
ui.actuatorNeutral->setValue(ui.actuatorNeutral->value() + 1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user