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

OP-1343 GCS Config - Input Channel Response Time was not saved + Made visible only for relevant channels.

This commit is contained in:
Philippe Renon 2014-05-11 17:32:04 +02:00
parent fcc16367eb
commit 048ca0787f

View File

@ -96,7 +96,6 @@ ConfigInputWidget::ConfigInputWidget(QWidget *parent) :
addWidgetBinding("ManualControlSettings", "ChannelMin", form->ui->channelMin, index);
addWidgetBinding("ManualControlSettings", "ChannelMax", form->ui->channelMax, index);
addWidget(form->ui->channelResponseTime);
addWidget(form->ui->channelRev);
// Input filter response time fields supported for some channels only
@ -113,7 +112,7 @@ ConfigInputWidget::ConfigInputWidget(QWidget *parent) :
case ManualControlSettings::CHANNELGROUPS_THROTTLE:
case ManualControlSettings::CHANNELGROUPS_FLIGHTMODE:
case ManualControlSettings::CHANNELGROUPS_COLLECTIVE:
form->ui->channelResponseTime->setEnabled(false);
form->ui->channelResponseTime->setVisible(false);
break;
default:
Q_ASSERT(0);