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

Work around for a problem caused by lack of elements in the fixed wing SVG for use in the output window.

This commit is contained in:
Kevin Finisterre 2013-12-16 20:51:43 -05:00
parent a960fd5c85
commit 6e5e7e4dd3
2 changed files with 4 additions and 6 deletions

View File

@ -135,7 +135,7 @@ void ConfigFixedWingWidget::setupUI(QString frameType)
m_aircraft->elevonSlider1->setEnabled(false);
m_aircraft->elevonSlider2->setEnabled(false);
} else if (frameType == "FixedWingElevon" || frameType == "Elevon") {
plane->setElementId("aileron");
plane->setElementId("vtail");
setComboCurrentIndex(m_aircraft->fixedWingType, m_aircraft->fixedWingType->findText("Elevon"));
m_aircraft->fwAileron1Label->setText("Elevon 1");
m_aircraft->fwAileron2Label->setText("Elevon 2");

View File

@ -147,8 +147,7 @@ void OutputCalibrationPage::setupVehicle()
ui->vehicleView->setScene(m_vehicleScene);
}
qDebug() << "no clue what a wizard index is!";
// m_wizardIndexes << 0 << 1 << 1 << 1 << 1 << 1 << 1;
m_wizardIndexes << 0 << 1 << 1 << 1 << 2 << 3 << 4;
m_wizardIndexes << 0 << 1 << 1 << 1 << 1 << 1 << 1;
m_vehicleElementIds << "fixed-aileron" << "aileron";
m_vehicleHighlightElementIndexes << 0 << 1;
m_channelIndex << 0 << 0 << 1 << 2 << 3 << 4 << 5;
@ -161,8 +160,7 @@ void OutputCalibrationPage::setupVehicle()
ui->vehicleView->setScene(m_vehicleScene);
}
qDebug() << "no clue what a wizard index is!";
// m_wizardIndexes << 0 << 1 << 1 << 1 << 1 << 1 << 1;
m_wizardIndexes << 0 << 1 << 1 << 1 << 2 << 3 << 4;
m_wizardIndexes << 0 << 1 << 1 << 1 << 1 << 1 << 1;
m_vehicleElementIds << "fixed-vtail" << "vtail";
m_vehicleHighlightElementIndexes << 0 << 1;
m_channelIndex << 0 << 0 << 1 << 2 << 3 << 4 << 5;
@ -255,7 +253,7 @@ void OutputCalibrationPage::setWizardPage()
ui->servoMaxAngleSlider->setValue(m_actuatorSettings[currentChannel].channelMax);
}
}
setupVehicleHighlightedPart();
// setupVehicleHighlightedPart(); // turn this off for now, need to fix fixedwing image elements
}
void OutputCalibrationPage::initializePage()