package org.usfirst.frc.team3501.robot;
+import org.usfirst.frc.team3501.robot.commands.shooter.ChangeShooterSpeed;
import org.usfirst.frc.team3501.robot.commands.shooter.PrintData;
import org.usfirst.frc.team3501.robot.commands.shooter.RecordData;
-import org.usfirst.frc.team3501.robot.commands.shooter.Test1;
-import org.usfirst.frc.team3501.robot.commands.shooter.Test2;
-import org.usfirst.frc.team3501.robot.commands.shooter.Test3;
+import org.usfirst.frc.team3501.robot.commands.shooter.Shoot;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
shoot = new JoystickButton(leftJoystick,
Constants.OI.LEFT_JOYSTICK_TRIGGER_PORT);
- shoot.whenPressed(new Test1());
+ shoot.whenPressed(new Shoot());
incrementSpeed = new JoystickButton(leftJoystick,
Constants.OI.LEFT_JOYSTICK_TOP_CENTER_PORT);
- incrementSpeed.whenPressed(new Test2());
+ incrementSpeed.whenPressed(new ChangeShooterSpeed(0.1));
decrementSpeed = new JoystickButton(leftJoystick,
Constants.OI.LEFT_JOYSTICK_TOP_LOW_PORT);
- decrementSpeed.whenPressed(new Test3());
+ decrementSpeed.whenPressed(new ChangeShooterSpeed(-0.1));
printData = new JoystickButton(leftJoystick,
Constants.OI.SPIN2_PORT);