mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +01:00
LP-311 Reverted previous commit that removed all logic and just removed the code where the tabs where switched. The Basic/Advanced checkbox code is still active though and will make the GUI consistent when loading configuration or changing values.
This commit is contained in:
parent
cfcf659ea5
commit
76ed067a4f
@ -254,7 +254,7 @@ void ConfigStabilizationWidget::refreshWidgetsValues(UAVObject *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 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()) &&
|
||||
@ -262,11 +262,9 @@ void ConfigStabilizationWidget::refreshWidgetsValues(UAVObject *o)
|
||||
(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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user