import org.usfirst.frc.team3501.robot.commands.driving.SetLowGear;
import org.usfirst.frc.team3501.robot.commands.driving.ToggleFront;
import org.usfirst.frc.team3501.robot.commands.intakearm.MoveIntakeArm;
-import org.usfirst.frc.team3501.robot.commands.intakearm.RunIntake;
+import org.usfirst.frc.team3501.robot.commands.intakearm.RunIntakeContinuous;
import org.usfirst.frc.team3501.robot.commands.shooter.FireCatapult;
import org.usfirst.frc.team3501.robot.commands.shooter.ResetCatapult;
// Right joystick
intake = new JoystickButton(rightJoystick,
Constants.OI.RIGHT_JOYSTICK_INTAKE_PORT);
- intake.whenPressed(new RunIntake(IntakeArm.IN));
- intake.whenReleased(new RunIntake(IntakeArm.STOP));
+ intake.whenPressed(new RunIntakeContinuous(IntakeArm.IN));
+ intake.whenReleased(new RunIntakeContinuous(IntakeArm.STOP));
outtake1 = new JoystickButton(rightJoystick,
Constants.OI.RIGHT_JOYSTICK_OUTTAKE_1_PORT);
- outtake1.whenPressed(new RunIntake(IntakeArm.OUT));
- outtake1.whenReleased(new RunIntake(IntakeArm.STOP));
+ outtake1.whenPressed(new RunIntakeContinuous(IntakeArm.OUT));
+ outtake1.whenReleased(new RunIntakeContinuous(IntakeArm.STOP));
outtake2 = new JoystickButton(rightJoystick,
Constants.OI.RIGHT_JOYSTICK_OUTTAKE_2_PORT);
- outtake2.whenPressed(new RunIntake(IntakeArm.OUT));
- outtake2.whenReleased(new RunIntake(IntakeArm.STOP));
+ outtake2.whenPressed(new RunIntakeContinuous(IntakeArm.OUT));
+ outtake2.whenReleased(new RunIntakeContinuous(IntakeArm.STOP));
shooterUp = new JoystickButton(rightJoystick,
Constants.OI.RIGHT_JOYSTICK_SHOOTER_UP_PORT);