File tree Expand file tree Collapse file tree
src/main/java/frc/robot/subsystems Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import com .revrobotics .spark .SparkBase .PersistMode ;
1010import com .revrobotics .spark .SparkBase .ResetMode ;
1111import com .revrobotics .spark .SparkClosedLoopController ;
12+ import com .revrobotics .spark .SparkFlex ;
1213import com .revrobotics .spark .SparkLimitSwitch ;
1314import com .revrobotics .spark .SparkLowLevel .MotorType ;
1415import com .revrobotics .spark .config .SparkMaxConfig ;
3334public class IntakeSubsystem extends SubsystemBase {
3435 private final SparkMax armLeaderMotor ;
3536 private final SparkMax armFollowerMotor ;
36- private final SparkMax intakeRollerMotor ;
37+ private final SparkFlex intakeRollerMotor ;
3738 private final SparkClosedLoopController pidController ;
3839 private final SparkLimitSwitch forwardLimitSwitch ;
3940 private final SparkLimitSwitch reverseLimitSwitch ;
@@ -98,7 +99,7 @@ public IntakeSubsystem() {
9899 )
99100 );
100101
101- intakeRollerMotor = new SparkMax (IntakeConstants .INTAKE_ROLLER_MOTOR_ID , MotorType .kBrushless );
102+ intakeRollerMotor = new SparkFlex (IntakeConstants .INTAKE_ROLLER_MOTOR_ID , MotorType .kBrushless );
102103
103104 // Set can timeout. Because this project only sets parameters once on
104105 // construction, the timeout can be long without blocking robot operation. Code
You can’t perform that action at this time.
0 commit comments