Commit | Line | Data |
---|---|---|
38a404b3 KZ |
1 | package org.usfirst.frc.team3501.robot; |
2 | ||
df8c00f0 AD |
3 | import edu.wpi.first.wpilibj.DoubleSolenoid; |
4 | import edu.wpi.first.wpilibj.DoubleSolenoid.Value; | |
bf921ece CZ |
5 | import edu.wpi.first.wpilibj.SPI; |
6 | ||
38a404b3 KZ |
7 | /** |
8 | * The Constants stores constant values for all subsystems. This includes the | |
9 | * port values for motors and sensors, as well as important operational | |
10 | * constants for subsystems such as max and min values. | |
11 | */ | |
12 | ||
13 | public class Constants { | |
d17d868d | 14 | public static class OI { |
6b4ab3d7 CZ |
15 | public final static int LEFT_STICK_PORT = 0; |
16 | public final static int RIGHT_STICK_PORT = 1; | |
14ff5362 | 17 | public final static int TOGGLE_WINCH_PORT = 0; |
2291f7b3 | 18 | public final static int TOGGLE_FLYWHEEL_PORT = 0; |
19 | public final static int TOGGLE_INDEXWHEEL_PORT = 0; | |
9cb4e417 | 20 | |
f388cdf4 | 21 | public final static int TOGGLE_GEAR_PORT = 0; |
9cb4e417 AEE |
22 | |
23 | public static final int TOGGLE_CAMERA_FEEDS = 7; | |
24 | ||
72beefff RH |
25 | public static final int TOGGLE_CAMERA_FEEDS = 4; |
26 | ||
d17d868d | 27 | } |
38a404b3 | 28 | |
f91f2b55 | 29 | public static class Shooter { |
30 | // MOTOR CONTROLLERS | |
31 | public static final int FLY_WHEEL = 0; | |
32 | public static final int INDEX_WHEEL = 0; | |
adfc0171 | 33 | public final static int TOGGLE_WINCH_PORT = 0; |
d0a3a99e | 34 | |
7099e02a | 35 | public final static int TOGGLE_FLYWHEEL_PORT = 0; |
36 | public final static int TOGGLE_INDEXWHEEL_PORT = 0; | |
e74e5e9d SG |
37 | } |
38 | ||
d17d868d | 39 | public static class DriveTrain { |
df8c00f0 | 40 | // GEARS |
d2757206 AD |
41 | public static final int MODULE_NUMBER = 10, LEFT_GEAR_PISTON_FORWARD = 6, |
42 | LEFT_GEAR_PISTON_REVERSE = 5, RIGHT_GEAR_PISTON_FORWARD = 0, | |
43 | RIGHT_GEAR_PISTON_REVERSE = 1; | |
df8c00f0 AD |
44 | public static final Value HIGH_GEAR = DoubleSolenoid.Value.kForward; |
45 | public static final Value LOW_GEAR = DoubleSolenoid.Value.kReverse; | |
46 | ||
d17d868d | 47 | // MOTOR CONTROLLERS |
68301d98 CZ |
48 | public static final int FRONT_LEFT = 1; |
49 | public static final int FRONT_RIGHT = 3; | |
50 | public static final int REAR_LEFT = 2; | |
b06733de | 51 | public static final int REAR_RIGHT = 4; |
38a404b3 | 52 | |
d17d868d | 53 | // ENCODERS |
93b4c266 CZ |
54 | public static final int ENCODER_LEFT_A = 1; |
55 | public static final int ENCODER_LEFT_B = 0; | |
b06733de CZ |
56 | public static final int ENCODER_RIGHT_A = 2; |
57 | public static final int ENCODER_RIGHT_B = 3; | |
bf921ece CZ |
58 | |
59 | public static final SPI.Port GYRO_PORT = SPI.Port.kOnboardCS0; | |
d17d868d | 60 | } |
fa4e4a97 | 61 | |
10d788c3 AD |
62 | public static class Intake { |
63 | public static final int INTAKE_ROLLER_PORT = 0; | |
44c26e0c | 64 | |
f761d7ba SG |
65 | } |
66 | ||
d17d868d | 67 | public static enum Direction { |
68 | LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD; | |
69 | } | |
fbc1210e ME |
70 | |
71 | public class CameraFeeds { | |
72 | public static final int btCamCenter = 1; | |
73 | public static final int btCamRight = 2; | |
74 | ||
75 | public static final String camNameCenter = "cam0"; | |
76 | public static final String camNameRight = "cam1"; | |
77 | public static final int imgQuality = 60; | |
78 | } | |
38a404b3 | 79 | } |