@@ -35,8 +35,6 @@ public class Intake extends SubsystemBase implements ITestableSubsystem {
3535 * lower current to just hold it out instead of pushing it out.
3636 */
3737 private final double FLIPPER_MOTOR_OUT_POSITION ;
38- private final double FLIPPER_MOTOR_PULL_IN_ONE_POSITION ;
39- private final double FLIPPER_MOTOR_PULL_IN_TWO_POSITION ;
4038 private final double FLIPPER_MOTOR_IN_POSITION ;
4139 private final double FLIPPER_MOTOR_RETRACT_CURRENT_AMPERES ;
4240 private final double FLIPPER_MOTOR_EXTEND_CURRENT_AMPERES ;
@@ -55,8 +53,6 @@ public Intake () {
5553 super ();
5654 SmartDashboard .putData ("Intake" , intakeMech );
5755 FLIPPER_MOTOR_OUT_POSITION = factory .getConstant (NAME , "flipperMotorOutPosition" , 0 );
58- FLIPPER_MOTOR_PULL_IN_ONE_POSITION = factory .getConstant (NAME , "flipperMotorPullInOnePosition" , 0 );
59- FLIPPER_MOTOR_PULL_IN_TWO_POSITION = factory .getConstant (NAME , "flipperMotorPullInTwoPosition" , 0 );
6056 FLIPPER_MOTOR_IN_POSITION = factory .getConstant (NAME , "flipperMotorInPosition" , 0 );
6157 FLIPPER_MOTOR_RETRACT_CURRENT_AMPERES = factory .getConstant (NAME , "flipperMotorRetractCurrentAmperes" , 0 );
6258 FLIPPER_MOTOR_EXTEND_CURRENT_AMPERES = factory .getConstant (NAME , "flipperMotorExtendCurrentAmperes" , 0 );
@@ -119,30 +115,6 @@ private void setFlipperPosition(FlipperPosition position) {
119115 );
120116 }
121117 }
122- case PULL_IN_ONE -> {
123- if (flipperMotor .getMotorPosition () > FLIPPER_MOTOR_PULL_IN_ONE_POSITION ) {
124- flipperMotor .setControl (
125- flipperMotorTorqueCurrentRequest .withOutput (FLIPPER_MOTOR_RETRACT_CURRENT_AMPERES )
126- );
127- }
128- else {
129- flipperMotor .setControl (
130- flipperMotorTorqueCurrentRequest .withOutput (0 )
131- );
132- }
133- }
134- case PULL_IN_TWO -> {
135- if (flipperMotor .getMotorPosition () > FLIPPER_MOTOR_PULL_IN_TWO_POSITION ) {
136- flipperMotor .setControl (
137- flipperMotorTorqueCurrentRequest .withOutput (FLIPPER_MOTOR_RETRACT_CURRENT_AMPERES )
138- );
139- }
140- else {
141- flipperMotor .setControl (
142- flipperMotorTorqueCurrentRequest .withOutput (0 )
143- );
144- }
145- }
146118 }
147119 }
148120
@@ -156,14 +128,12 @@ public void setWantedState(IntakeState state) {
156128 */
157129 public enum FlipperPosition {
158130 IN ,
159- OUT ,
160- PULL_IN_ONE ,
161- PULL_IN_TWO
131+ OUT
162132 }
163133
164134 public enum IntakeState {
165135 STOW (
166- factory .getConstant (NAME , "intakeOffSpeed " , 0 , true ),
136+ factory .getConstant (NAME , "intakeSlowSpeed " , .1 , true ),
167137 FlipperPosition .IN
168138 ),
169139 INTAKE (
@@ -177,14 +147,6 @@ public enum IntakeState {
177147 STOP_OUT (
178148 0 ,
179149 FlipperPosition .OUT
180- ),
181- PULL_IN_ONE (
182- factory .getConstant (NAME , "intakeOnSpeed" , 0 ),
183- FlipperPosition .PULL_IN_ONE
184- ),
185- PULL_IN_TWO (
186- factory .getConstant (NAME , "intakeOnSpeed" , 0 ),
187- FlipperPosition .PULL_IN_TWO
188150 );
189151
190152 private double intakeMotorValue ;
0 commit comments