package org.usfirst.frc.team3501.robot;
+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;
public static Button shoot;
public static Button incrementSpeed;
public static Button decrementSpeed;
+ public static Button printData;
// // first column of arcade buttons - getting past defenses
// public static DigitalButton passPortcullis;
shoot.whenPressed(new Test1());
incrementSpeed = new JoystickButton(leftJoystick,
- Constants.OI.SPIN2_PORT);
+ Constants.OI.LEFT_JOYSTICK_TOP_CENTER_PORT);
incrementSpeed.whenPressed(new Test2());
decrementSpeed = new JoystickButton(leftJoystick,
Constants.OI.LEFT_JOYSTICK_TOP_LOW_PORT);
decrementSpeed.whenPressed(new Test3());
+ printData = new JoystickButton(leftJoystick,
+ Constants.OI.SPIN2_PORT);
+ printData.whenPressed(new PrintData());
+
// SpinRobot180_1 = new JoystickButton(leftJoystick,
// Constants.OI.SPIN1_PORT);
// SpinRobot180_1.whenPressed(new Turn180());
--- /dev/null
+package org.usfirst.frc.team3501.robot.commands.shooter;
+
+import org.usfirst.frc.team3501.robot.Constants;
+
+import edu.wpi.first.wpilibj.command.CommandGroup;
+
+/**
+ *
+ */
+public class PrintData extends CommandGroup {
+
+ public PrintData() {
+ for (int i = 0; i < Constants.Shooter.speeds.size(); i++) {
+ System.out.println("speed: " + Constants.Shooter.speeds.get(i)
+ + ", distance: " + Constants.Shooter.distances.get(i));
+ }
+ }
+}