mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
OP-1728 Fix output value
This commit is contained in:
parent
4b24707f82
commit
ee3efc535e
@ -309,8 +309,11 @@ void OutputChannelForm::reverseChannel(bool state)
|
|||||||
ui.actuatorMax->setValue(ui.actuatorMin->value());
|
ui.actuatorMax->setValue(ui.actuatorMin->value());
|
||||||
ui.actuatorMin->setValue(temp);
|
ui.actuatorMin->setValue(temp);
|
||||||
ui.actuatorNeutral->setInvertedAppearance(state);
|
ui.actuatorNeutral->setInvertedAppearance(state);
|
||||||
|
|
||||||
|
setChannelRange();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -327,10 +330,6 @@ void OutputChannelForm::sendChannelTest(int value)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ui.actuatorRev->isChecked()) {
|
|
||||||
// the channel is reversed
|
|
||||||
value = ui.actuatorMin->value() - value + ui.actuatorMax->value();
|
|
||||||
}
|
|
||||||
// update the label
|
// update the label
|
||||||
ui.actuatorValue->setValue(value);
|
ui.actuatorValue->setValue(value);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user