1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

OP-1159 Removed "Rev" checkboxes on input tab for channels on which it doesn't have an effect

This commit is contained in:
Philippe Renon 2014-05-11 17:42:44 +02:00
parent 048ca0787f
commit b6a297c40f

View File

@ -98,6 +98,13 @@ ConfigInputWidget::ConfigInputWidget(QWidget *parent) :
addWidget(form->ui->channelRev);
// Reversing supported for some channels only
bool reversable = ((index == ManualControlSettings::CHANNELGROUPS_THROTTLE) ||
(index == ManualControlSettings::CHANNELGROUPS_ROLL) ||
(index == ManualControlSettings::CHANNELGROUPS_PITCH) ||
(index == ManualControlSettings::CHANNELGROUPS_YAW));
form->ui->channelRev->setVisible(reversable);
// Input filter response time fields supported for some channels only
switch (index) {
case ManualControlSettings::CHANNELGROUPS_ROLL: