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:
parent
048ca0787f
commit
b6a297c40f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user