From 7153607b87823499666b1248d92b78644199b279 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Mon, 18 Jul 2011 10:40:35 -0500 Subject: [PATCH] Reenable the receiver type input now that it is required. --- .../src/plugins/config/configinputwidget.cpp | 1 - .../openpilotgcs/src/plugins/config/input.ui | 203 ++++++++++-------- 2 files changed, 119 insertions(+), 85 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp b/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp index 88579c78c..5fb4b5b73 100644 --- a/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp +++ b/ground/openpilotgcs/src/plugins/config/configinputwidget.cpp @@ -113,7 +113,6 @@ ConfigInputWidget::ConfigInputWidget(QWidget *parent) : ConfigTaskWidget(parent) QString fieldName = QString("InputMode"); UAVObjectField *field = obj->getField(fieldName); m_config->receiverType->addItems(field->getOptions()); - m_config->receiverType->setDisabled(true); // This option does not work for now, it is a compile-time option. // Fill in the dropdown menus for the channel RC Input assignement. QStringList channelsList; diff --git a/ground/openpilotgcs/src/plugins/config/input.ui b/ground/openpilotgcs/src/plugins/config/input.ui index cef9c9abe..320aa2db8 100644 --- a/ground/openpilotgcs/src/plugins/config/input.ui +++ b/ground/openpilotgcs/src/plugins/config/input.ui @@ -6,8 +6,8 @@ 0 0 - 626 - 532 + 655 + 554 @@ -24,12 +24,34 @@ RC Input - + + + + + 50 + 0 + + + + + 16777215 + 16777215 + + + + You must restart your board after changing receiver type. Also your hardware setings must support it. + + + true + + + + - 75 - true + 50 + false @@ -40,7 +62,7 @@ - + Select the receiver type here: @@ -50,7 +72,7 @@ - + @@ -80,14 +102,14 @@ - + Rev. - + @@ -100,7 +122,7 @@ - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -114,7 +136,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -132,7 +154,7 @@ p, li { white-space: pre-wrap; } - + true @@ -151,7 +173,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -166,7 +188,7 @@ p, li { white-space: pre-wrap; } - + Check this to reverse the channel. @@ -178,10 +200,10 @@ reversal capabilities). - + - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -195,7 +217,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -213,7 +235,7 @@ p, li { white-space: pre-wrap; } - + true @@ -232,7 +254,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -247,7 +269,7 @@ p, li { white-space: pre-wrap; } - + Check this to reverse the channel. @@ -259,10 +281,10 @@ reversal capabilities). - + - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -276,7 +298,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -294,7 +316,7 @@ p, li { white-space: pre-wrap; } - + true @@ -313,7 +335,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -328,7 +350,7 @@ p, li { white-space: pre-wrap; } - + Check this to reverse the channel. @@ -340,10 +362,10 @@ reversal capabilities). - + - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -357,7 +379,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -375,7 +397,7 @@ p, li { white-space: pre-wrap; } - + true @@ -394,7 +416,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -409,7 +431,7 @@ p, li { white-space: pre-wrap; } - + Check this to reverse the channel. @@ -421,10 +443,10 @@ reversal capabilities). - + - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -438,7 +460,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -456,7 +478,7 @@ p, li { white-space: pre-wrap; } - + true @@ -475,7 +497,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -490,7 +512,7 @@ p, li { white-space: pre-wrap; } - + Check this to reverse the channel. @@ -502,10 +524,10 @@ reversal capabilities). - + - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -519,7 +541,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -537,7 +559,7 @@ p, li { white-space: pre-wrap; } - + true @@ -556,7 +578,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -571,7 +593,7 @@ p, li { white-space: pre-wrap; } - + Check this to reverse the channel. @@ -583,10 +605,10 @@ reversal capabilities). - + - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -600,7 +622,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -618,7 +640,7 @@ p, li { white-space: pre-wrap; } - + true @@ -637,7 +659,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -652,7 +674,7 @@ p, li { white-space: pre-wrap; } - + Check this to reverse the channel. @@ -664,10 +686,10 @@ reversal capabilities). - + - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -681,7 +703,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -699,7 +721,7 @@ p, li { white-space: pre-wrap; } - + true @@ -718,7 +740,7 @@ p, li { white-space: pre-wrap; } - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -733,7 +755,7 @@ p, li { white-space: pre-wrap; } - + Check this to reverse the channel. @@ -745,34 +767,7 @@ reversal capabilities). - - - - - 75 - true - - - - BEWARE: make sure your engines are not connected when running calibration! - - - - - - - - - 75 - true - - - - - - - - + @@ -792,6 +787,33 @@ Neutral should be put at the bottom of the slider for the throttle. + + + + + 75 + true + + + + + + + + + + + + 75 + true + + + + BEWARE: make sure your engines are not connected when running calibration! + + + + @@ -1170,6 +1192,19 @@ if you have not done so already. + + + + Qt::Vertical + + + + 20 + 40 + + + +