]> git.taranathan.com Git - FRC2026.git/commitdiff
higher correction, lower min
authoriefomit <timofei.stem@gmail.com>
Sat, 28 Mar 2026 23:49:45 +0000 (16:49 -0700)
committeriefomit <timofei.stem@gmail.com>
Sat, 28 Mar 2026 23:49:45 +0000 (16:49 -0700)
src/main/java/frc/robot/constants/GyroBiasConstants.java

index e7d5f6d46767ea04ea64cad7bfff76b6b367d18d..e3d5480302532b8ce1d9e1606078d97707ec871f 100644 (file)
@@ -11,13 +11,13 @@ public class GyroBiasConstants {
     public static final double MAX_ANGLE_DIFF_RAD = Math.toRadians(45);
 
     /** minimum correction to apply in radians */
-    public static final double MIN_CORRECTION_RAD = Math.toRadians(1.0);
+    public static final double MIN_CORRECTION_RAD = Math.toRadians(0.1);
 
     /** fraction of the correction to apply (0.0 to 1.0) */
     public static final double CORRECTION_FRACTION = 0.2;
 
     /** maximum correction per cycle in radians */
-    public static final double MAX_CORRECTION_PER_CYCLE_RAD = 0.05; // 2.9 deg
+    public static final double MAX_CORRECTION_PER_CYCLE_RAD = Math.toRadians(5);
 
     /** alpha for exponential moving average 0.0 to 1.0, higher is more responsive */
     public static final double EMA_ALPHA = 0.3;