From 76ed067a4f1abc82ee4b168be8def7f2542ef1e9 Mon Sep 17 00:00:00 2001 From: Fredrik Arvidsson Date: Sun, 29 May 2016 10:43:29 +0200 Subject: [PATCH] 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. --- ground/gcs/src/plugins/config/configstabilizationwidget.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ground/gcs/src/plugins/config/configstabilizationwidget.cpp b/ground/gcs/src/plugins/config/configstabilizationwidget.cpp index ce0d5b8f1..ac3db5a28 100644 --- a/ground/gcs/src/plugins/config/configstabilizationwidget.cpp +++ b/ground/gcs/src/plugins/config/configstabilizationwidget.cpp @@ -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); } } }