From f6fc6672523aa90d1137f3f08cde6d3f1179d6dd Mon Sep 17 00:00:00 2001 From: BR88C Date: Tue, 15 Oct 2024 23:05:11 -0400 Subject: [PATCH] Oops --- src/main/java/org/team340/lib/util/rev/SparkFlexConfig.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/team340/lib/util/rev/SparkFlexConfig.java b/src/main/java/org/team340/lib/util/rev/SparkFlexConfig.java index a17322c..ba89096 100644 --- a/src/main/java/org/team340/lib/util/rev/SparkFlexConfig.java +++ b/src/main/java/org/team340/lib/util/rev/SparkFlexConfig.java @@ -5,7 +5,6 @@ import com.revrobotics.REVLibError; import org.team340.lib.util.Math2; import org.team340.lib.util.Sleep; -import org.team340.robot.Constants; /** * Config builder for {@link CANSparkFlex}. @@ -16,7 +15,7 @@ public class SparkFlexConfig extends RevConfigBase { private static final SparkFlexConfig kDefaults = new SparkFlexConfig() .clearFaults() .restoreFactoryDefaults() - .enableVoltageCompensation(Constants.VOLTAGE) + .enableVoltageCompensation(12.0) .setPeriodicFramePeriod(Frame.S0, 20) .setPeriodicFramePeriod(Frame.S1, 20) .setPeriodicFramePeriod(Frame.S2, 20)