public static final int INDEX_WHEEL = 7;
public final static int HALL_EFFECT_PORT = 9;
+
+ public static final int PISTON_MODULE = 10, PISTON_FORWARD = 0,
+ PISTON_REVERSE = 1;
+ public static final Value HIGH_GEAR = DoubleSolenoid.Value.kForward;
+ public static final Value LOW_GEAR = DoubleSolenoid.Value.kReverse;
}
public static class DriveTrain {
package org.usfirst.frc.team3501.robot.commands.shooter;
+import org.usfirst.frc.team3501.robot.Constants;
import org.usfirst.frc.team3501.robot.Robot;
import org.usfirst.frc.team3501.robot.subsystems.Shooter;
// Called repeatedly when this Command is scheduled to run
@Override
protected void execute() {
+ if (t.get() % 1 == 0) {
+ if (Shooter.getShooter().getPistonValue() == Constants.Shooter.LOW_GEAR) {
+ Shooter.getShooter().setHighGear();
+ } else {
+ Shooter.getShooter().setLowGear();
+ }
+ }
+
double shooterSpeed = shooter.getShooterRPM();
if (shooterSpeed > 0)
shooter.runIndexWheel();