From 78e9cf412a09bf8c804f95b372e3388465b57b21 Mon Sep 17 00:00:00 2001 From: samuel desharnais Date: Wed, 27 Mar 2024 18:54:21 -0400 Subject: [PATCH] --- src/main/java/frc/robot/subsystem/Drive.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/frc/robot/subsystem/Drive.java b/src/main/java/frc/robot/subsystem/Drive.java index a9db546..b802bd8 100644 --- a/src/main/java/frc/robot/subsystem/Drive.java +++ b/src/main/java/frc/robot/subsystem/Drive.java @@ -36,6 +36,7 @@ public class Drive extends SubsystemBase { public Drive() { try { this.swerveDrive = new SwerveParser(swerveJsonDirectory).createSwerveDrive(5); + swerveDrive.setHeadingCorrection(true); } catch (IOException e) { e.printStackTrace(); }