Skip to content

Commit

Permalink
Merge pull request bitcraze#531 from bitcraze/jonasdn/530
Browse files Browse the repository at this point in the history
FlightTab: Remove unused flightmode.ratepid param
  • Loading branch information
jonasdn authored Sep 7, 2021
2 parents 3116e17 + b9380d1 commit 5d9ea32
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
15 changes: 0 additions & 15 deletions src/cfclient/ui/tabs/FlightTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,26 +207,11 @@ def __init__(self, tabWidget, helper, *args):

self.uiSetupReady()

self.ratePidRadioButton.clicked.connect(
lambda enabled:
self.helper.cf.param.set_value("flightmode.ratepid",
str(enabled)))

self.angularPidRadioButton.clicked.connect(
lambda enabled:
self.helper.cf.param.set_value("flightmode.ratepid",
str(not enabled)))

self._led_ring_headlight.clicked.connect(
lambda enabled:
self.helper.cf.param.set_value("ring.headlightEnable",
str(enabled)))

self.helper.cf.param.add_update_callback(
group="flightmode", name="ratepid",
cb=(lambda name, checked:
self.ratePidRadioButton.setChecked(eval(checked))))

self.helper.cf.param.add_update_callback(
group="ring", name="headlightEnable",
cb=(lambda name, checked:
Expand Down
23 changes: 0 additions & 23 deletions src/cfclient/ui/tabs/flightTab.ui
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,6 @@
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QRadioButton" name="angularPidRadioButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Attitude control</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
Expand Down Expand Up @@ -123,16 +110,6 @@
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QRadioButton" name="ratePidRadioButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Rate control</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="flightModeCombo">
<property name="minimumSize">
Expand Down

0 comments on commit 5d9ea32

Please sign in to comment.