1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

OP-1734 Display min/max servo values

This commit is contained in:
Laurent Lalanne 2015-02-20 12:16:59 +01:00
parent 3c93738404
commit 1792991012

View File

@ -662,6 +662,7 @@ void OutputCalibrationPage::on_servoMinAngleSlider_valueChanged(int position)
quint16 value = ui->servoMinAngleSlider->value();
m_calibrationUtil->setChannelOutputValue(value);
m_actuatorSettings[getCurrentChannel()].channelMin = value;
ui->servoPWMValue->setText(tr("Output value : <b>%1</b> µs (Min)").arg(value));
// Adjust neutral and max
if (ui->reverseCheckbox->isChecked()) {
@ -688,6 +689,7 @@ void OutputCalibrationPage::on_servoMaxAngleSlider_valueChanged(int position)
quint16 value = ui->servoMaxAngleSlider->value();
m_calibrationUtil->setChannelOutputValue(value);
m_actuatorSettings[getCurrentChannel()].channelMax = value;
ui->servoPWMValue->setText(tr("Output value : <b>%1</b> µs (Max)").arg(value));
// Adjust neutral and min
if (ui->reverseCheckbox->isChecked()) {