Slowing the button rotation on TeleOP and narrowing the parameters, Take 3, Sprint 3 TeleOP.

This commit is contained in:
Sodi
2022-11-01 19:58:35 -05:00
parent 5c99a00552
commit 0616ecc4b4

View File

@@ -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);
}
}