From 933dfa860993d1be01b4e2ba671e65d1307de131 Mon Sep 17 00:00:00 2001 From: Dmitry Zaitsev Date: Sat, 10 Mar 2012 06:00:00 +0400 Subject: [PATCH] GCSReciver: fix UI and increase number of channels --- ground/openpilotgcs/src/plugins/config/inputchannelform.cpp | 3 ++- shared/uavobjectdefinition/gcsreceiver.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/config/inputchannelform.cpp b/ground/openpilotgcs/src/plugins/config/inputchannelform.cpp index b8faa0fcb..060c2f7e2 100644 --- a/ground/openpilotgcs/src/plugins/config/inputchannelform.cpp +++ b/ground/openpilotgcs/src/plugins/config/inputchannelform.cpp @@ -2,6 +2,7 @@ #include "ui_inputchannelform.h" #include "manualcontrolsettings.h" +#include "gcsreceiver.h" inputChannelForm::inputChannelForm(QWidget *parent,bool showlegend) : QWidget(parent), @@ -108,7 +109,7 @@ void inputChannelForm::groupUpdated() count = 18; break; case ManualControlSettings::CHANNELGROUPS_GCS: - count = 5; + count = GCSReceiver::CHANNEL_NUMELEM; break; case ManualControlSettings::CHANNELGROUPS_NONE: count = 0; diff --git a/shared/uavobjectdefinition/gcsreceiver.xml b/shared/uavobjectdefinition/gcsreceiver.xml index d21598e48..81af8a5d5 100644 --- a/shared/uavobjectdefinition/gcsreceiver.xml +++ b/shared/uavobjectdefinition/gcsreceiver.xml @@ -1,7 +1,7 @@ A receiver channel group carried over the telemetry link. - +