mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
When qcombo disabled, change index to None, cosmetic, was never used in
mixer but could confuse users, per Eric's suggestion. Reenabled v-tail
This commit is contained in:
parent
8befdeb9b2
commit
6ea2fc67db
@ -137,7 +137,9 @@ void ConfigFixedWingWidget::setupUI(QString frameType)
|
|||||||
m_aircraft->fwAileron1Label->setText("Elevon 1");
|
m_aircraft->fwAileron1Label->setText("Elevon 1");
|
||||||
m_aircraft->fwAileron2Label->setText("Elevon 2");
|
m_aircraft->fwAileron2Label->setText("Elevon 2");
|
||||||
m_aircraft->fwElevator1ChannelBox->setEnabled(false);
|
m_aircraft->fwElevator1ChannelBox->setEnabled(false);
|
||||||
|
m_aircraft->fwElevator1ChannelBox->setCurrentIndex(0);
|
||||||
m_aircraft->fwElevator2ChannelBox->setEnabled(false);
|
m_aircraft->fwElevator2ChannelBox->setEnabled(false);
|
||||||
|
m_aircraft->fwElevator2ChannelBox->setCurrentIndex(0);
|
||||||
m_aircraft->fwRudder1ChannelBox->setEnabled(true);
|
m_aircraft->fwRudder1ChannelBox->setEnabled(true);
|
||||||
m_aircraft->fwRudder2ChannelBox->setEnabled(true);
|
m_aircraft->fwRudder2ChannelBox->setEnabled(true);
|
||||||
|
|
||||||
@ -149,11 +151,12 @@ void ConfigFixedWingWidget::setupUI(QString frameType)
|
|||||||
m_aircraft->elevonSlider1->setEnabled(true);
|
m_aircraft->elevonSlider1->setEnabled(true);
|
||||||
m_aircraft->elevonSlider2->setEnabled(true);
|
m_aircraft->elevonSlider2->setEnabled(true);
|
||||||
} else if (frameType == "FixedWingVtail" || frameType == "Vtail") {
|
} else if (frameType == "FixedWingVtail" || frameType == "Vtail") {
|
||||||
planeimg->setElementId("aileron");
|
planeimg->setElementId("vtail");
|
||||||
setComboCurrentIndex(m_aircraft->fixedWingType, m_aircraft->fixedWingType->findText("Vtail"));
|
setComboCurrentIndex(m_aircraft->fixedWingType, m_aircraft->fixedWingType->findText("Vtail"));
|
||||||
m_aircraft->fwRudder1ChannelBox->setEnabled(false);
|
m_aircraft->fwRudder1ChannelBox->setEnabled(false);
|
||||||
|
m_aircraft->fwRudder1ChannelBox->setCurrentIndex(0);
|
||||||
m_aircraft->fwRudder2ChannelBox->setEnabled(false);
|
m_aircraft->fwRudder2ChannelBox->setEnabled(false);
|
||||||
|
m_aircraft->fwRudder2ChannelBox->setCurrentIndex(0);
|
||||||
m_aircraft->fwElevator1Label->setText("Vtail 1");
|
m_aircraft->fwElevator1Label->setText("Vtail 1");
|
||||||
m_aircraft->fwElevator1ChannelBox->setEnabled(true);
|
m_aircraft->fwElevator1ChannelBox->setEnabled(true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user