1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-18 08:54:15 +01:00

Release 15.05 RC7 WhatsNew Update

And uncrustify
This commit is contained in:
abeck70 2015-06-06 08:00:16 +10:00
parent b492b7e10a
commit 631c1b2361
4 changed files with 18 additions and 9 deletions

View File

@ -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

View File

@ -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,12 +221,14 @@ int ConfigTaskWidget::getComboboxSelectedOption(QComboBox *combo)
{
bool ok;
int index = combo->currentData().toInt(&ok);
return ok ? index : -1;
}
void ConfigTaskWidget::setComboboxSelectedOption(QComboBox *combo, int optionValue)
{
int index = combo->findData(QVariant(optionValue));
if (index != -1) {
combo->setCurrentIndex(index);
}
@ -1039,7 +1042,7 @@ void ConfigTaskWidget::loadWidgetLimits(QWidget *widget, UAVObjectField *field,
cb->clear();
QStringList options = field->getOptions();
for(int optionIndex = 0; optionIndex < options.count(); optionIndex++) {
for (int optionIndex = 0; optionIndex < options.count(); optionIndex++) {
if (hasLimits) {
if (m_currentBoardId > -1 && field->isWithinLimits(options.at(optionIndex), index, m_currentBoardId)) {
cb->addItem(options.at(optionIndex), QVariant(optionIndex));