diff --git a/ground/openpilotgcs/src/plugins/config/configccpmwidget.cpp b/ground/openpilotgcs/src/plugins/config/configccpmwidget.cpp
index 72a04faf2..5d49e00e0 100644
--- a/ground/openpilotgcs/src/plugins/config/configccpmwidget.cpp
+++ b/ground/openpilotgcs/src/plugins/config/configccpmwidget.cpp
@@ -410,7 +410,17 @@ void ConfigccpmWidget::UpdateType()
m_ccpm->ccpmServoXChannel->setVisible(NumServosDefined>=2);
m_ccpm->ccpmServoYChannel->setVisible(NumServosDefined>=3);
m_ccpm->ccpmServoZChannel->setVisible(NumServosDefined>=4);
-
+
+ //set the visibility of the swashplate angle selection boxes
+ m_ccpm->ccpmServoWLabel_2->setVisible(NumServosDefined>=1);
+ m_ccpm->ccpmServoXLabel_2->setVisible(NumServosDefined>=2);
+ m_ccpm->ccpmServoYLabel_2->setVisible(NumServosDefined>=3);
+ m_ccpm->ccpmServoZLabel_2->setVisible(NumServosDefined>=4);
+ m_ccpm->ccpmAngleW->setVisible(NumServosDefined>=1);
+ m_ccpm->ccpmAngleX->setVisible(NumServosDefined>=2);
+ m_ccpm->ccpmAngleY->setVisible(NumServosDefined>=3);
+ m_ccpm->ccpmAngleZ->setVisible(NumServosDefined>=4);
+
m_ccpm->ccpmAdvancedSettingsTable->resizeColumnsToContents();
for (int i=0;i<6;i++) {
@@ -783,7 +793,10 @@ void ConfigccpmWidget::ccpmSwashplateUpdate()
ccpmSwashplateRedraw();
SetUIComponentVisibilities();
UpdateMixer();
-
+}
+
+void ConfigccpmWidget::ccpmChannelCheck()
+{
if((m_ccpm->ccpmServoWChannel->currentIndex()==8)&&(m_ccpm->ccpmServoWChannel->isEnabled()))
{
m_ccpm->ccpmServoWLabel->setText("Servo W");
@@ -817,6 +830,24 @@ void ConfigccpmWidget::ccpmSwashplateUpdate()
m_ccpm->ccpmServoZLabel->setText("Servo Z");
}
+ if((m_ccpm->ccpmEngineChannel->currentIndex()==8)&&(m_ccpm->ccpmEngineChannel->isEnabled()))
+ {
+ m_ccpm->ccpmEngineLabel->setText("Engine");
+ }
+ else
+ {
+ m_ccpm->ccpmEngineLabel->setText("Engine");
+ }
+
+ if((m_ccpm->ccpmTailChannel->currentIndex()==8)&&(m_ccpm->ccpmTailChannel->isEnabled()))
+ {
+ m_ccpm->ccpmTailLabel->setText("Tail Rotor");
+ }
+ else
+ {
+ m_ccpm->ccpmTailLabel->setText("Tail Rotor");
+ }
+
}
void ConfigccpmWidget::UpdateMixer()
@@ -828,6 +859,7 @@ void ConfigccpmWidget::UpdateMixer()
//QTableWidgetItem *newItem;// = new QTableWidgetItem();
QString Channel;
+ ccpmChannelCheck();
//Type = m_ccpm->ccpmType->count() - m_ccpm->ccpmType->currentIndex()-1;
//CollectiveConstant=m_ccpm->ccpmCollectiveSlider->value()/100.0;
//CorrectionAngle=m_ccpm->ccpmCorrectionAngle->value();
diff --git a/ground/openpilotgcs/src/plugins/config/configccpmwidget.h b/ground/openpilotgcs/src/plugins/config/configccpmwidget.h
index 853081024..cb44b4f16 100644
--- a/ground/openpilotgcs/src/plugins/config/configccpmwidget.h
+++ b/ground/openpilotgcs/src/plugins/config/configccpmwidget.h
@@ -136,6 +136,7 @@ private:
void UpdatCCPMUIFromOptions();
void SetUIComponentVisibilities();
+ void ccpmChannelCheck();
void enableSwashplateLevellingControl(bool state);
void setSwashplateLevel(int percent);