mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Revert "LP-311 Remove basic/advanced stabilization tab auto-switch (autotune/txpid lock issues)"
This reverts commit fad04833ede06139ddb91cd002529ded02164826.
This commit is contained in:
parent
81575ab462
commit
cfcf659ea5
@ -252,6 +252,23 @@ void ConfigStabilizationWidget::refreshWidgetsValues(UAVObject *o)
|
||||
ConfigTaskWidget::refreshWidgetsValues(o);
|
||||
|
||||
updateThrottleCurveFromObject();
|
||||
|
||||
// Check and update basic/advanced checkboxes only if something connected
|
||||
// Jump to advanced tab if something not "basic": Rate value out of slider limits or different Pitch/Roll values
|
||||
if (ui->lowThrottleZeroIntegral_8->isEnabled() && !realtimeUpdates->isActive()) {
|
||||
if ((ui->attitudeRollResponse->value() == ui->attitudePitchResponse->value()) &&
|
||||
(ui->rateRollResponse->value() == ui->ratePitchResponse->value()) &&
|
||||
(ui->rateRollResponse->value() <= ui->RateResponsivenessSlider->maximum()) &&
|
||||
(ui->ratePitchResponse->value() <= ui->RateResponsivenessSlider->maximum())) {
|
||||
ui->basicResponsivenessCheckBox->setChecked(true);
|
||||
ui->advancedResponsivenessCheckBox->setChecked(false);
|
||||
ui->tabWidget->setCurrentIndex(0);
|
||||
} else {
|
||||
ui->basicResponsivenessCheckBox->setChecked(false);
|
||||
ui->advancedResponsivenessCheckBox->setChecked(true);
|
||||
ui->tabWidget->setCurrentIndex(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ConfigStabilizationWidget::updateObjectsFromWidgets()
|
||||
|
Loading…
x
Reference in New Issue
Block a user