mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-16 08:29:15 +01:00
Merged in m_thread/librepilot/thread/LP-311_Fix_The_Fix (pull request #253)
LP-311 Fixing the fix
This commit is contained in:
commit
1aed9f5723
@ -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()
|
||||
|
@ -997,8 +997,11 @@ margin-top: -1px;
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QCheckBox" name="basicResponsivenessCheckBox">
|
||||
<property name="toolTip">
|
||||
<string><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></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use Basic Configuration</string>
|
||||
<string>Use Basic Configuration View</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>false</bool>
|
||||
@ -7873,8 +7876,11 @@ border-radius: 5;</string>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string><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></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Use Advanced Configuration</string>
|
||||
<string>Use Advanced Configuration View</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user