public static final int MANUAL_MODE = 1, ENCODER_MODE = 2, GYRO_MODE = 3;
public static final int MODULE_A_ID = 9, MODULE_B_ID = 10;
- public static final int LEFT_FORWARD = 5, LEFT_REVERSE = 1,
- RIGHT_FORWARD = 4, RIGHT_REVERSE = 0;
+ public static final int LEFT_FORWARD = 1, LEFT_REVERSE = 5,
+ RIGHT_FORWARD = 0, RIGHT_REVERSE = 6;
public static double time = 0;
* motors. The piston controlling the platform pushes the ball onto the wheel.
* The wheel is controlled by a motor, which is running before the ball is
* pushed onto the wheel. The spinning wheel propels the ball.
- *
+ *
* @author superuser
- *
+ *
*/
public class Shooter extends Subsystem {
public Shooter() {
shooter = new CANTalon(Constants.Shooter.PORT);
- hood1 = new DoubleSolenoid(10, Constants.Shooter.RIGHT_HOOD_FORWARD,
+ hood1 = new DoubleSolenoid(Constants.DriveTrain.MODULE_B_ID,
+ Constants.Shooter.RIGHT_HOOD_FORWARD,
Constants.Shooter.RIGHT_HOOD_REVERSE); // right
- hood2 = new DoubleSolenoid(9, Constants.Shooter.LEFT_HOOD_FORWARD,
+ hood2 = new DoubleSolenoid(Constants.DriveTrain.MODULE_A_ID,
+ Constants.Shooter.LEFT_HOOD_FORWARD,
Constants.Shooter.LEFT_HOOD_REVERSE);// left
- punch = new DoubleSolenoid(9, Constants.Shooter.PUNCH_FORWARD,
- Constants.Shooter.PUNCH_REVERSE);
+ punch = new DoubleSolenoid(Constants.DriveTrain.MODULE_A_ID,
+ Constants.Shooter.PUNCH_FORWARD, Constants.Shooter.PUNCH_REVERSE);
encoder = new Encoder(Constants.Shooter.ENCODER_PORT_A,
Constants.Shooter.ENCODER_PORT_B, false, EncodingType.k4X);
/***
* This method checks to see if the ball has successfully passed through the
* intake rollers and is inside.
- *
+ *
* @return whether the presence of the ball is true or false and returns the
* state of the condition (true or false).
*/