diff --git a/Larry/conversions.py b/Larry/conversions.py index 20e5260..b3f2d28 100644 --- a/Larry/conversions.py +++ b/Larry/conversions.py @@ -18,4 +18,8 @@ def sign(num) -> int: def convertJoystickInputToDegrees(x: float, y: float): return float(math.degrees(math.atan2(y, x))) - \ No newline at end of file + def deadband(value: float, deadband: float): + if math.fabs(value) >= deadband: + return 0 + else: + return value \ No newline at end of file diff --git a/Larry/simgui-window.json b/Larry/simgui-window.json index f3f1a93..6aa8765 100644 --- a/Larry/simgui-window.json +++ b/Larry/simgui-window.json @@ -14,7 +14,7 @@ "###FMS": { "Collapsed": "0", "Pos": "6,675", - "Size": "336,164" + "Size": "281,190" }, "###Joysticks": { "Collapsed": "0",