mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
OP-1734 Review changes
This commit is contained in:
parent
518059a6b1
commit
89f4bf56a8
@ -647,10 +647,10 @@ void OutputCalibrationPage::on_servoCenterAngleSlider_valueChanged(int position)
|
||||
qreal arrowOpacity = 0;
|
||||
if (value < limitLow) {
|
||||
arrowOpacity = (qreal)(middle - value) / (qreal)(middle - minValue);
|
||||
showElementMovement((ui->reverseCheckbox->isChecked() ? true : false), arrowOpacity);
|
||||
showElementMovement(ui->reverseCheckbox->isChecked(), arrowOpacity);
|
||||
} else if (value > limitHigh) {
|
||||
arrowOpacity = (qreal)(value - middle) / (qreal)(maxValue - middle);
|
||||
showElementMovement((ui->reverseCheckbox->isChecked() ? false : true), arrowOpacity);
|
||||
showElementMovement(!ui->reverseCheckbox->isChecked(), arrowOpacity);
|
||||
}
|
||||
|
||||
debugLogChannelValues();
|
||||
|
Loading…
x
Reference in New Issue
Block a user