public final static int TOGGLE_FLYWHEEL_PORT = 0;
public final static int TOGGLE_INDEXWHEEL_PORT = 0;
public final static int REVERSE_INDEXWHEEL_PORT = 0;
- public final static int TOGGLE_GEAR_PORT = 0;
- public final static int TOGGLE_INTAKE_PORT = 0;
- public final static int REVERSE_INTAKE_PORT = 0;
+ public final static int TOGGLE_GEAR_PORT = 5;
+ public final static int TOGGLE_INTAKE_PORT = 1;
+ public final static int REVERSE_INTAKE_PORT = 2;
}
public static class Shooter {
public static class DriveTrain {
// GEARS
- public static final int MODULE_NUMBER = 10, LEFT_GEAR_PISTON_FORWARD = 6,
- LEFT_GEAR_PISTON_REVERSE = 5, RIGHT_GEAR_PISTON_FORWARD = 0,
- RIGHT_GEAR_PISTON_REVERSE = 1;
+ public static final int LEFT_GEAR_PISTON_FORWARD = 0,
+ LEFT_GEAR_PISTON_REVERSE = 1, RIGHT_GEAR_PISTON_FORWARD = 2,
+ RIGHT_GEAR_PISTON_REVERSE = 3;
public static final Value HIGH_GEAR = DoubleSolenoid.Value.kForward;
public static final Value LOW_GEAR = DoubleSolenoid.Value.kReverse;
}
public static class Intake {
- public static final int INTAKE_ROLLER_PORT = 0;
+ public static final int INTAKE_ROLLER_PORT = 8;
}
this.imu = new ADXRS450_Gyro(Constants.DriveTrain.GYRO_PORT);
// TODO: Not sure if MODULE_NUMBER should be the same for both
- leftGearPiston = new DoubleSolenoid(Constants.DriveTrain.MODULE_NUMBER,
+ leftGearPiston = new DoubleSolenoid(
Constants.DriveTrain.LEFT_GEAR_PISTON_FORWARD,
Constants.DriveTrain.LEFT_GEAR_PISTON_REVERSE);
- rightGearPiston = new DoubleSolenoid(Constants.DriveTrain.MODULE_NUMBER,
+ rightGearPiston = new DoubleSolenoid(
Constants.DriveTrain.RIGHT_GEAR_PISTON_FORWARD,
Constants.DriveTrain.RIGHT_GEAR_PISTON_REVERSE);
}
public class Intake extends Subsystem {
private static Intake intake = null;
private CANTalon intakeWheel;
- public static final double INTAKE_SPEED = 0;
- public static final double REVERSE_SPEED = 0;
+ public static final double INTAKE_SPEED = 1;
+ public static final double REVERSE_SPEED = -1;
public Intake() {
intakeWheel = new CANTalon(Constants.Intake.INTAKE_ROLLER_PORT);