From f3ffa511bc4831aedb3c01b41e29883cef0f4db7 Mon Sep 17 00:00:00 2001 From: Danny <75951607+dannynotsmart@users.noreply.github.com> Date: Fri, 19 Jan 2024 22:19:55 -0500 Subject: [PATCH] Update src/main/java/org/sciborgs1155/robot/drive/gyro/Navx.java Co-authored-by: Asa Paparo --- src/main/java/org/sciborgs1155/robot/drive/gyro/Navx.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/sciborgs1155/robot/drive/gyro/Navx.java b/src/main/java/org/sciborgs1155/robot/drive/gyro/Navx.java index 7d2af43..cf4baaa 100644 --- a/src/main/java/org/sciborgs1155/robot/drive/gyro/Navx.java +++ b/src/main/java/org/sciborgs1155/robot/drive/gyro/Navx.java @@ -6,7 +6,7 @@ import edu.wpi.first.wpilibj.SPI; public class Navx implements GyroIO { - private AHRS ahrs; + private final AHRS ahrs = new AHRS(); public Navx() { ahrs = new AHRS(SPI.Port.kMXP);