);
CurrentLimitsConfigs limitConfig = new CurrentLimitsConfigs();
- limitConfig.StatorCurrentLimit = ShooterConstants.SHOOTER_CURRENT_LIMIT;
+ limitConfig.StatorCurrentLimit = ShooterConstants.SHOOTER_STATOR_CURRENT_LIMIT;
limitConfig.StatorCurrentLimitEnable = true;
shooterMotorLeft.getConfigurator().apply(limitConfig);
shooterMotorRight.getConfigurator().apply(limitConfig);
import edu.wpi.first.math.util.Units;
public class ShooterConstants {
- public static final double SHOOTER_VELOCITY = 1.0;
- public static final double SHOOTER_LAUNCH_DIAMETER = Units.inchesToMeters(4.0);
- public static final double SHOOTER_CURRENT_LIMIT = 40.0;
+ public static final double SHOOTER_VELOCITY = 1.0;
+ public static final double SHOOTER_LAUNCH_DIAMETER = Units.inchesToMeters(4.0);
+ public static final double SHOOTER_CURRENT_LIMIT = 40.0;
+ public static final double SHOOTER_STATOR_CURRENT_LIMIT = 120.0;
}