mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
Merge remote-tracking branch 'origin/thread/OP-1567_Wizard_fixes' into rel-14.10
This commit is contained in:
commit
5afb74efd1
@ -377,6 +377,11 @@ void OutputCalibrationPage::on_motorNeutralButton_toggled(bool checked)
|
||||
ui->motorNeutralSlider->setEnabled(checked);
|
||||
quint16 channel = getCurrentChannel();
|
||||
quint16 safeValue = 0;
|
||||
if (!checked) {
|
||||
// Set pwm output to 1000/low for 500ms before turning it to 0
|
||||
m_calibrationUtil->setChannelOutputValue(1000);
|
||||
QThread::msleep(500);
|
||||
}
|
||||
onStartButtonToggle(ui->motorNeutralButton, channel, m_actuatorSettings[channel].channelNeutral, safeValue, ui->motorNeutralSlider);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user