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

GCSReciver: fix UI and increase number of channels

This commit is contained in:
Dmitry Zaitsev 2012-03-10 06:00:00 +04:00
parent 3a5b0c2329
commit 933dfa8609
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
#include "ui_inputchannelform.h" #include "ui_inputchannelform.h"
#include "manualcontrolsettings.h" #include "manualcontrolsettings.h"
#include "gcsreceiver.h"
inputChannelForm::inputChannelForm(QWidget *parent,bool showlegend) : inputChannelForm::inputChannelForm(QWidget *parent,bool showlegend) :
QWidget(parent), QWidget(parent),
@ -108,7 +109,7 @@ void inputChannelForm::groupUpdated()
count = 18; count = 18;
break; break;
case ManualControlSettings::CHANNELGROUPS_GCS: case ManualControlSettings::CHANNELGROUPS_GCS:
count = 5; count = GCSReceiver::CHANNEL_NUMELEM;
break; break;
case ManualControlSettings::CHANNELGROUPS_NONE: case ManualControlSettings::CHANNELGROUPS_NONE:
count = 0; count = 0;

View File

@ -1,7 +1,7 @@
<xml> <xml>
<object name="GCSReceiver" singleinstance="true" settings="false"> <object name="GCSReceiver" singleinstance="true" settings="false">
<description>A receiver channel group carried over the telemetry link.</description> <description>A receiver channel group carried over the telemetry link.</description>
<field name="Channel" units="us" type="uint16" elements="6"/> <field name="Channel" units="us" type="uint16" elements="8"/>
<access gcs="readwrite" flight="readonly"/> <access gcs="readwrite" flight="readonly"/>
<telemetrygcs acked="false" updatemode="onchange" period="0"/> <telemetrygcs acked="false" updatemode="onchange" period="0"/>
<telemetryflight acked="false" updatemode="never" period="0"/> <telemetryflight acked="false" updatemode="never" period="0"/>