Current limit change for RollerIndexer

This commit is contained in:
2026-04-11 19:34:38 -04:00
parent e6a0573eae
commit 582b0d9135
2 changed files with 4 additions and 5 deletions

View File

@@ -7,11 +7,11 @@ public class RollerIndexerConstants {
public static final int kMotor1CANID = 50; public static final int kMotor1CANID = 50;
public static final int kMotor2CANID = 4; public static final int kMotor2CANID = 4;
public static final int kCurrentLimit = 30; public static final int kCurrentLimit = 40;
public static final double kMotorSpeed = 1; public static final double kMotorSpeed = 1;
public static final boolean kMotorInverted = false; public static final boolean kMotorInverted = true;
public static final IdleMode kIdleMode = IdleMode.kBrake; public static final IdleMode kIdleMode = IdleMode.kBrake;

View File

@@ -12,7 +12,6 @@ import com.revrobotics.spark.SparkLowLevel.MotorType;
import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.SubsystemBase; import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.constants.RollerIndexerConstants; import frc.robot.constants.RollerIndexerConstants;
import frc.robot.constants.SpindexerConstants;
import frc.robot.interfaces.IIndexer; import frc.robot.interfaces.IIndexer;
public class RollerIndexer extends SubsystemBase implements IIndexer { public class RollerIndexer extends SubsystemBase implements IIndexer {
@@ -24,13 +23,13 @@ public class RollerIndexer extends SubsystemBase implements IIndexer {
motor2 = new SparkMax(RollerIndexerConstants.kMotor2CANID, MotorType.kBrushless); motor2 = new SparkMax(RollerIndexerConstants.kMotor2CANID, MotorType.kBrushless);
motor1.configure( motor1.configure(
SpindexerConstants.kFeederConfig, RollerIndexerConstants.kMotorConfig,
ResetMode.kResetSafeParameters, ResetMode.kResetSafeParameters,
PersistMode.kPersistParameters PersistMode.kPersistParameters
); );
motor2.configure( motor2.configure(
SpindexerConstants.kFeederConfig, RollerIndexerConstants.kMotorConfig,
ResetMode.kResetSafeParameters, ResetMode.kResetSafeParameters,
PersistMode.kPersistParameters PersistMode.kPersistParameters
); );