From d857877ee292202ba3a469b3821561ff0d4218d2 Mon Sep 17 00:00:00 2001 From: kartofen Date: Fri, 16 Feb 2024 18:10:45 +0200 Subject: working gyro and subsystem --- src/main/java/frc/robot/Constants.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/frc/robot/Constants.java') diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 6d471db..98824ae 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -16,10 +16,10 @@ public class Constants public static final double DriveMaxSpeed = 5; // m/s public static final double DriveMaxAngular = Math.PI; // rad/s? - public static final double WheelRadius = 0.0254; // in meters - public static final double TrackWidth = 0.74; // in meters + public static final double WheelDiameter = 0.1524; // in meters + public static final double TrackWidth = 0.685; // in meters - public static final double EncoderResolution = 4096; + public static final double EncoderResolution = 4096 / 24; public static final IMUGyro gyro = new IMUGyro(new I2C(Port.kOnboard, 0x68)); -- cgit v1.2.3