summaryrefslogtreecommitdiff
path: root/src/main/java/frc/robot/util
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2024-03-04 21:35:41 +0200
committerkartofen <mladenovnasko0@gmail.com>2024-03-04 21:35:41 +0200
commit839871ba03cc6d9865154216174183ff012fe113 (patch)
tree2912696dca734bf53276f198d5b86685599c5813 /src/main/java/frc/robot/util
parent39f4c3f833ec119a0060cb833c7a1953bca76eef (diff)
sysid and trajectory things
Diffstat (limited to 'src/main/java/frc/robot/util')
-rw-r--r--src/main/java/frc/robot/util/IMUGyro.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/frc/robot/util/IMUGyro.java b/src/main/java/frc/robot/util/IMUGyro.java
index aa4563b..580af8b 100644
--- a/src/main/java/frc/robot/util/IMUGyro.java
+++ b/src/main/java/frc/robot/util/IMUGyro.java
@@ -65,7 +65,7 @@ public class IMUGyro
public Rotation2d toRotation2d()
{
- return new Rotation2d(yaw % 360);
+ return new Rotation2d(-yaw);
}
public void calibrateGyro(int iter)