mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
Merge branch 'rel-nano-15.05' into corvuscorax/fixedwingautotakeofftest
This commit is contained in:
commit
a41ef23659
@ -1,4 +1,10 @@
|
||||
Release Notes - OpenPilot - Version RELEASE-15.05 RC6
|
||||
Release Notes - OpenPilot - Version RELEASE-15.05 RC7
|
||||
|
||||
RC7 changes relative to RC6:
|
||||
1. Nano hardware page fixes
|
||||
2. Upgrade google map version
|
||||
3. xtal frequency changes again to suit an sbus receiver.
|
||||
4. OP-1875 reinit EKF on changes to AuxMagSettings
|
||||
|
||||
RC6 changes relative to RC5:
|
||||
1. Altvario AltHold PID updates
|
||||
|
@ -213,6 +213,7 @@ bool ConfigTaskWidget::isComboboxOptionSelected(QComboBox *combo, int optionValu
|
||||
{
|
||||
bool ok;
|
||||
int value = combo->currentData().toInt(&ok);
|
||||
|
||||
return ok ? value == optionValue : false;
|
||||
}
|
||||
|
||||
@ -220,14 +221,18 @@ int ConfigTaskWidget::getComboboxSelectedOption(QComboBox *combo)
|
||||
{
|
||||
bool ok;
|
||||
int index = combo->currentData().toInt(&ok);
|
||||
return ok ? index : -1;
|
||||
|
||||
return ok ? index : combo->currentIndex();
|
||||
}
|
||||
|
||||
void ConfigTaskWidget::setComboboxSelectedOption(QComboBox *combo, int optionValue)
|
||||
{
|
||||
int index = combo->findData(QVariant(optionValue));
|
||||
|
||||
if (index != -1) {
|
||||
combo->setCurrentIndex(index);
|
||||
} else {
|
||||
combo->setCurrentIndex(optionValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user