1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

Merge branch 'rel-nano-15.05' into abeck/nano-pathfollower

This commit is contained in:
abeck70 2015-05-29 21:44:36 +10:00
commit b7f3dd979e
4 changed files with 8 additions and 23 deletions

View File

@ -356,14 +356,14 @@ void ConfigOutputWidget::refreshWidgetsValues(UAVObject *obj)
// Setup labels and combos for banks according to board type
if (board == 0x0903) {
// Revolution family of boards 6 timer banks
bankLabels << "1 (1-2)" << "2 (3)" << "3 (4)" << "4 (5-6)" << "5 (7-8)" << "6 (9-10)";
channelBanks << 1 << 1 << 2 << 3 << 4 << 4 << 5 << 5 << 6 << 6;
bankLabels << "1 (1-2)" << "2 (3)" << "3 (4)" << "4 (5-6)" << "5 (7,12)" << "6 (8-11)";
channelBanks << 1 << 1 << 2 << 3 << 4 << 4 << 5 << 6 << 6 << 6 << 6 << 5;
} else if (board == 0x0905) {
// Revolution Nano
bankLabels << "1 (1)" << "2 (2,7,11)" << "3 (3)" << "4 (4)" << "5 (5-6)" << "6 (8-10,12)";
channelBanks << 1 << 2 << 3 << 4 << 5 << 5 << 2 << 6 << 6 << 6 << 2 << 6;
}
}
}
int i = 0;
foreach(QString banklabel, bankLabels) {

View File

@ -49,6 +49,7 @@ void AutoUpdatePage::autoUpdate()
Q_ASSERT(uploader);
m_isUpdating = true;
uploader->autoUpdate(ui->eraseSettings->isChecked());
getWizard()->setRestartNeeded(true);
}
void AutoUpdatePage::updateStatus(uploader::ProgressStep status, QVariant value)

View File

@ -77,25 +77,7 @@ bool EscPage::isSynchOrOneShotAvailable()
switch (getWizard()->getControllerType()) {
case SetupWizard::CONTROLLER_NANO:
switch (getWizard()->getVehicleType()) {
case SetupWizard::VEHICLE_MULTI:
switch (getWizard()->getVehicleSubType()) {
case SetupWizard::MULTI_ROTOR_TRI_Y:
case SetupWizard::MULTI_ROTOR_QUAD_X:
case SetupWizard::MULTI_ROTOR_QUAD_H:
case SetupWizard::MULTI_ROTOR_QUAD_PLUS:
available = getWizard()->getInputType() != SetupWizard::INPUT_PWM;
break;
default:
available = false;
break;
}
break;
default:
break;
}
available = getWizard()->getInputType() != SetupWizard::INPUT_PWM;
break;
default:

View File

@ -100,7 +100,9 @@ int SetupWizard::nextId() const
return PAGE_INPUT;
case CONTROLLER_NANO:
reboot();
if (isRestartNeeded()) {
reboot();
}
return PAGE_INPUT;
case CONTROLLER_OPLINK: