From 5c45ca7530c4e96abbd50ac1bb0594653b61537c Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Tue, 7 Nov 2023 00:28:08 -0600 Subject: [PATCH] Fixed binding of ABS_X to Gyro Per Axis --- scc/gui/ae/gyro.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scc/gui/ae/gyro.py b/scc/gui/ae/gyro.py index faadf34a2..53cd3ecc2 100644 --- a/scc/gui/ae/gyro.py +++ b/scc/gui/ae/gyro.py @@ -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: