mirror of
https://github.com/TimeCrafters/FTC_2022
synced 2025-12-16 17:02:34 +00:00
Slowing the button rotation on TeleOP and narrowing the parameters, Take 3, Sprint 3 TeleOP.
This commit is contained in:
@@ -45,10 +45,10 @@ public class PrototypeTeleOPState extends CyberarmState {
|
|||||||
DeltaRotation = Math.abs(RotationTarget - RobotRotation);
|
DeltaRotation = Math.abs(RotationTarget - RobotRotation);
|
||||||
}
|
}
|
||||||
else if (RotationTarget >= 0 && RobotRotation <= 0) {
|
else if (RotationTarget >= 0 && RobotRotation <= 0) {
|
||||||
DeltaRotation = Math.abs(RotationTarget - RobotRotation);
|
DeltaRotation = Math.abs(RotationTarget + RobotRotation);
|
||||||
}
|
}
|
||||||
else if (RotationTarget <=0 && RobotRotation >= 0) {
|
else if (RotationTarget <=0 && RobotRotation >= 0) {
|
||||||
DeltaRotation = Math.abs(RobotRotation - RotationTarget);
|
DeltaRotation = Math.abs(RobotRotation + RotationTarget);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user