From 0616ecc4b423dc376f2459473da7c3985a0ee3be Mon Sep 17 00:00:00 2001 From: Sodi Date: Tue, 1 Nov 2022 19:58:35 -0500 Subject: [PATCH] Slowing the button rotation on TeleOP and narrowing the parameters, Take 3, Sprint 3 TeleOP. --- .../org/timecrafters/testing/states/PrototypeTeleOPState.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TeamCode/src/main/java/org/timecrafters/testing/states/PrototypeTeleOPState.java b/TeamCode/src/main/java/org/timecrafters/testing/states/PrototypeTeleOPState.java index c7a3801..8fb0de3 100644 --- a/TeamCode/src/main/java/org/timecrafters/testing/states/PrototypeTeleOPState.java +++ b/TeamCode/src/main/java/org/timecrafters/testing/states/PrototypeTeleOPState.java @@ -45,10 +45,10 @@ public class PrototypeTeleOPState extends CyberarmState { DeltaRotation = Math.abs(RotationTarget - RobotRotation); } else if (RotationTarget >= 0 && RobotRotation <= 0) { - DeltaRotation = Math.abs(RotationTarget - RobotRotation); + DeltaRotation = Math.abs(RotationTarget + RobotRotation); } else if (RotationTarget <=0 && RobotRotation >= 0) { - DeltaRotation = Math.abs(RobotRotation - RotationTarget); + DeltaRotation = Math.abs(RobotRotation + RotationTarget); } }