summaryrefslogtreecommitdiff
path: root/src/main/java/frc/robot/util
diff options
context:
space:
mode:
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)