| 1 | package org.usfirst.frc.team3501.robot; |
| 2 | |
| 3 | import edu.wpi.first.wpilibj.DoubleSolenoid; |
| 4 | |
| 5 | /** |
| 6 | * The Constants stores constant values for all subsystems. This includes the |
| 7 | * port values for motors and sensors, as well as important operational |
| 8 | * constants for subsystems such as max and min values. |
| 9 | */ |
| 10 | |
| 11 | public class Constants { |
| 12 | public static class OI { |
| 13 | // Computer Ports |
| 14 | public final static int LEFT_STICK_PORT = 0; |
| 15 | public final static int RIGHT_STICK_PORT = 1; |
| 16 | // Ports on the Joystick |
| 17 | public final static int TRIGGER_PORT = 1; |
| 18 | public final static int DECREMENT_SHOOTER_SPEED_PORT = 2; |
| 19 | public final static int INCREMENT_SHOOTER_SPEED_PORT = 3; |
| 20 | public final static int SHOOT_PORT = 4; |
| 21 | public final static int LOG_PORT = 5; |
| 22 | } |
| 23 | |
| 24 | public static class DriveTrain { |
| 25 | // Drivetrain Motor Related Ports |
| 26 | public static final int FRONT_LEFT = 0; |
| 27 | public static final int FRONT_RIGHT = 0; |
| 28 | public static final int REAR_LEFT = 0; |
| 29 | public static final int REAR_RIGHT = 0; |
| 30 | |
| 31 | // Encoder related ports |
| 32 | public final static int ENCODER_LEFT_A = 3; |
| 33 | public final static int ENCODER_LEFT_B = 4; |
| 34 | public final static int ENCODER_RIGHT_A = 2; |
| 35 | public final static int ENCODER_RIGHT_B = 1; |
| 36 | } |
| 37 | |
| 38 | public static class Scaler { |
| 39 | // Piston channels |
| 40 | public final static int FORWARD_CHANNEL = 0; |
| 41 | public final static int REVERSE_CHANNEL = 0; |
| 42 | |
| 43 | // Winch port |
| 44 | public final static int WINCH_MOTOR = 0; |
| 45 | } |
| 46 | |
| 47 | public static class Shooter { |
| 48 | public static final int PORT = 0; |
| 49 | public static final int PUNCH_FORWARD_PORT = 0; |
| 50 | public static final int PUNCH_REVERSE_PORT = 1; |
| 51 | public static final int ANGLE_ADJUSTER_PORT = 0; |
| 52 | |
| 53 | public static final DoubleSolenoid.Value punch = DoubleSolenoid.Value.kForward; |
| 54 | public static final DoubleSolenoid.Value retract = DoubleSolenoid.Value.kReverse; |
| 55 | |
| 56 | // Encoder port |
| 57 | public static final int ENCODER_PORT_A = 0; |
| 58 | public static final int ENCODER_PORT_B = 0; |
| 59 | |
| 60 | public static enum State { |
| 61 | RUNNING, STOPPED; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | public static class IntakeArm { |
| 66 | public static final int PORT = 0; |
| 67 | public static final int CHEVAL_DE_FRISE_HAND_PORT = 1; |
| 68 | |
| 69 | public static final double INTAKE_SPEED = 0.5; |
| 70 | public static final double OUTPUT_SPEED = -0.5; |
| 71 | } |
| 72 | |
| 73 | public static enum Direction { |
| 74 | LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD; |
| 75 | } |
| 76 | |
| 77 | public enum Defense { |
| 78 | PORTCULLIS, SALLY_PORT, ROUGH_TERRAIN, LOW_BAR, CHEVAL_DE_FRISE, DRAWBRIDGE, MOAT, ROCK_WALL, RAMPART; |
| 79 | } |
| 80 | |
| 81 | public static class DefenseArm { |
| 82 | // Potentiometer related ports |
| 83 | public static final int CHANNEL = 0; |
| 84 | public static final int PORT = 0; |
| 85 | } |
| 86 | } |