From 5865ec6e8d243f628349c8b46403677194889eca Mon Sep 17 00:00:00 2001 From: Collin Town Date: Wed, 19 Feb 2020 15:00:13 -0500 Subject: [PATCH] Revert deadband until better fix --- src/main/java/viking/Controller.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/viking/Controller.java b/src/main/java/viking/Controller.java index a0bc826..787e69d 100644 --- a/src/main/java/viking/Controller.java +++ b/src/main/java/viking/Controller.java @@ -20,32 +20,32 @@ public Controller(int port) { } public double getControllerLeftStickX() { - if (controller.getRawAxis(0) < lJoystickDeadbandX) return 0; + //if (controller.getRawAxis(0) < lJoystickDeadbandX) return 0; return controller.getRawAxis(0); } public double getControllerLeftStickY() { - if (controller.getRawAxis(1) * -1 < lJoystickDeadbandY) return 0; + //if (controller.getRawAxis(1) * -1 < lJoystickDeadbandY) return 0; return controller.getRawAxis(1) * -1; } public double getControllerRightStickX() { - if (controller.getRawAxis(4) < rJoystickDeadbandX) return 0; + //if (controller.getRawAxis(4) < rJoystickDeadbandX) return 0; return controller.getRawAxis(4); } public double getControllerRightStickY() { - if (controller.getRawAxis(5) < rJoystickDeadbandY) return 0; + //if (controller.getRawAxis(5) < rJoystickDeadbandY) return 0; return controller.getRawAxis(5); } public double getControllerLTrigger() { - if (controller.getRawAxis(2) < lTriggerDeadband) return 0; + //if (controller.getRawAxis(2) < lTriggerDeadband) return 0; return controller.getRawAxis(2); } public double getControllerRTrigger() { - if (controller.getRawAxis(3) < rTriggerDeadband) return 0; + //if (controller.getRawAxis(3) < rTriggerDeadband) return 0; return controller.getRawAxis(3); }