From 839871ba03cc6d9865154216174183ff012fe113 Mon Sep 17 00:00:00 2001 From: kartofen Date: Mon, 4 Mar 2024 21:35:41 +0200 Subject: sysid and trajectory things --- src/main/java/frc/robot/util/IMUGyro.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/frc/robot/util') 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) -- cgit v1.2.3