1
0
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:
Laurent Lalanne 2015-02-20 16:54:16 +01:00
parent 518059a6b1
commit 89f4bf56a8

View File

@ -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();