import org.usfirst.frc.team3501.robot.commands.intake.StopIntake;
import org.usfirst.frc.team3501.robot.commands.shooter.DecreaseShootingSpeed;
import org.usfirst.frc.team3501.robot.commands.shooter.IncreaseShootingSpeed;
-import org.usfirst.frc.team3501.robot.commands.shooter.RunIndexWheelContinuous;
import org.usfirst.frc.team3501.robot.commands.shooter.StopIndexWheel;
import edu.wpi.first.wpilibj.Joystick;
public static Button toggleWinch;
- public static Button toggleIndexWheel;
- public static Button toggleFlyWheel;
-
public static Button toggleIntake;
public static Button toggleReverseIntake;
Constants.OI.LEFT_TRIGGER_BUTTON);
toggleGearSpeed = new JoystickButton(leftJoystick,
Constants.OI.LEFT_BUTTON_2);
- toggleIndexWheel = new JoystickButton(leftJoystick,
- Constants.OI.LEFT_BUTTON_2);
- toggleFlyWheel = new JoystickButton(leftJoystick,
- Constants.OI.LEFT_BUTTON_2);
// toggleIntake = new JoystickButton(leftJoystick,
// Constants.OI.LEFT_BUTTON_3);
toggleReverseIntake = new JoystickButton(leftJoystick,
toggleWinch.whenActive(new RunWinchContinuous(1));
toggleWinch.whenReleased(new StopWinch());
- toggleIndexWheel.whenPressed(new RunIndexWheelContinuous(1));
-
toggleIntake.whenActive(new RunIntakeContinuous());
toggleReverseIntake.whenActive(new ReverseIntakeContinuous());
toggleIntake.whenReleased(new StopIntake());