Current limit change for RollerIndexer
This commit is contained in:
@@ -7,11 +7,11 @@ public class RollerIndexerConstants {
|
||||
public static final int kMotor1CANID = 50;
|
||||
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 boolean kMotorInverted = false;
|
||||
public static final boolean kMotorInverted = true;
|
||||
|
||||
public static final IdleMode kIdleMode = IdleMode.kBrake;
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ import com.revrobotics.spark.SparkLowLevel.MotorType;
|
||||
import edu.wpi.first.wpilibj2.command.Command;
|
||||
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||
import frc.robot.constants.RollerIndexerConstants;
|
||||
import frc.robot.constants.SpindexerConstants;
|
||||
import frc.robot.interfaces.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);
|
||||
|
||||
motor1.configure(
|
||||
SpindexerConstants.kFeederConfig,
|
||||
RollerIndexerConstants.kMotorConfig,
|
||||
ResetMode.kResetSafeParameters,
|
||||
PersistMode.kPersistParameters
|
||||
);
|
||||
|
||||
motor2.configure(
|
||||
SpindexerConstants.kFeederConfig,
|
||||
RollerIndexerConstants.kMotorConfig,
|
||||
ResetMode.kResetSafeParameters,
|
||||
PersistMode.kPersistParameters
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user