import org.usfirst.frc.team3501.robot.commands.intakearm.IntakeBall;
import org.usfirst.frc.team3501.robot.commands.scaler.ExtendLift;
import org.usfirst.frc.team3501.robot.commands.scaler.RetractLift;
+import org.usfirst.frc.team3501.robot.commands.scaler.RunWinchContinuous;
+import org.usfirst.frc.team3501.robot.commands.scaler.StopWinch;
import org.usfirst.frc.team3501.robot.commands.shooter.Shoot;
import org.usfirst.frc.team3501.robot.commands.shooter.runShooter;
passSallyPort.whenPressed(new PassSallyPort());
lowerChevalDeFrise
- .whenPressed(/* TO DO: define this, and fill in commands */);
+ .whenPressed(/* TO DO: define this, and fill in commands */);
if (toggleScalingMode.get()) {
if (!isScalingMode) {
shootBoulder.whenPressed(new Shoot());
} else if (isScalingMode) {
- toggleShooter.toggleWhenPressed(new WinchIn());
+ toggleShooter.whenPressed(new RunWinchContinuous(
+ Constants.Scaler.WINCH_IN_SPEED));
compactRobot_1.whenPressed(new RetractLift());
- intakeBoulder.toggleWhenPressed(new WinchOut());
+ intakeBoulder.whenReleased(new StopWinch());
shootBoulder.whenPressed(new ExtendLift());
}
SpinRobot180_1
- .whenPressed(/* rotate robot 180, reorient joystick controls */);
+ .whenPressed(/* rotate robot 180, reorient joystick controls */);
}
}