Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Fixed binding of ABS_X to Gyro Per Axis
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryochan7 committed Nov 7, 2023
1 parent e85025f commit 5c45ca7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scc/gui/ae/gyro.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,15 @@ def send(self, *a):
absolute, a_set = [ None, None, None ], False

for i in range(0, 3):
if self.axes[i]:
# Fix case when axis id is zero (ABS_X)
if self.axes[i] != None:
if self.cbs[i].get_active():
absolute[i] = self.axes[i]
a_set = True
else:
normal[i] = self.axes[i]
n_set = True

if n_set and a_set:
action = MultiAction(GyroAction(*normal), GyroAbsAction(*absolute))
elif n_set:
Expand Down

0 comments on commit 5c45ca7

Please sign in to comment.