diff --git a/ground/gcs/src/plugins/config/configstabilizationwidget.cpp b/ground/gcs/src/plugins/config/configstabilizationwidget.cpp index 567e1a357..ac3db5a28 100644 --- a/ground/gcs/src/plugins/config/configstabilizationwidget.cpp +++ b/ground/gcs/src/plugins/config/configstabilizationwidget.cpp @@ -252,6 +252,21 @@ void ConfigStabilizationWidget::refreshWidgetsValues(UAVObject *o) ConfigTaskWidget::refreshWidgetsValues(o); updateThrottleCurveFromObject(); + + // Check and update basic/advanced checkboxes only if something connected + // 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); + } else { + ui->basicResponsivenessCheckBox->setChecked(false); + ui->advancedResponsivenessCheckBox->setChecked(true); + } + } } void ConfigStabilizationWidget::updateObjectsFromWidgets() diff --git a/ground/gcs/src/plugins/config/stabilization.ui b/ground/gcs/src/plugins/config/stabilization.ui index 56ab3d919..95fadca4a 100644 --- a/ground/gcs/src/plugins/config/stabilization.ui +++ b/ground/gcs/src/plugins/config/stabilization.ui @@ -997,8 +997,11 @@ margin-top: -1px; + + <html><head/><body><p>When this option is selected the simplified version of the configuration view will be used. </p><p>This view hides some settings that are considered advanced and will make it easier for users to get a first working configuration.</p></body></html> + - Use Basic Configuration + Use Basic Configuration View false @@ -7873,8 +7876,11 @@ border-radius: 5; 0 + + <html><head/><body><p>When this option is selected the advanced version of the configuration view will be used. </p><p>This view shows all settings that are considered advanced and will enable users to to tweak all possible settings to fine tune configuration.</p></body></html> + - Use Advanced Configuration + Use Advanced Configuration View