@@ -33,7 +33,10 @@ public class RobotContainer {
33
33
34
34
public static final Climber climber = new Climber ();
35
35
public static final Magazine magazine = new Magazine ();
36
- public static final Shooter shooter = new Shooter ();
36
+ public static final ShooterWheel shooterWheel = new ShooterWheel ();
37
+ public static final Hood hood = new Hood ();
38
+ public static final Turret turret = new Turret ();
39
+ public static final Feeder feeder = new Feeder ();
37
40
public static final Drive drive = new Drive ();
38
41
public static final Intake intake = new Intake ();
39
42
public static final Autonomous autonomous = new Autonomous ();
@@ -62,13 +65,13 @@ public RobotContainer() {
62
65
pidtuner = new PidTuner (RobotContainer .DRIVER_STICK .DRIVER_STICK_ENA_BUTTON_SIX ,
63
66
RobotContainer .DRIVER_STICK .DRIVER_STICK_ENA_BUTTON_SEVEN ,
64
67
RobotContainer .DRIVER_STICK .DRIVER_STICK_ENA_BUTTON_ELEVEN ,
65
- RobotContainer .DRIVER_STICK .DRIVER_STICK_ENA_BUTTON_TEN , shooter );
68
+ RobotContainer .DRIVER_STICK .DRIVER_STICK_ENA_BUTTON_TEN , drive );
66
69
67
70
cameraLights .set (true );
68
71
}
69
72
70
73
public static void init () {
71
- shooter .init ();
74
+ shooterWheel .init ();
72
75
}
73
76
74
77
private void configureDefaultCommands () {
@@ -84,7 +87,7 @@ private void configureDefaultCommands() {
84
87
// which wants all the battery power available) would turn the compressor off when the command starts
85
88
// and off when the command ends.) Then again, maybe the "defaultCommand" is a good way to do this
86
89
// and I just don't understand the style yet.
87
- compressor .setDefaultCommand (new AirCompressorDefault ());
90
+ // compressor.setDefaultCommand(new AirCompressorDefault());
88
91
}
89
92
90
93
private void configureAutonomousPrograms () {
@@ -93,7 +96,9 @@ private void configureAutonomousPrograms() {
93
96
// TODO: fix so that auto program is shown not just when changed (as shows old setting sometimes)
94
97
95
98
// autonomousPrograms.push(/* 01 */ new StayStill());
99
+ autonomousPrograms .push (/* 01 */ new DriveStraightOnly ());
96
100
autonomousPrograms .push (/* 00 */ new TrenchAuto ());
101
+
97
102
// autonomousPrograms.push( new ShooterReadyAimFire());
98
103
// autonomousPrograms.push(new TestTurret());
99
104
@@ -155,8 +160,8 @@ private void configureDriverPadButtons() {
155
160
// about -30 degrees
156
161
// DRIVER_PAD.DRIVER_PAD_D_PAD_RIGHT.whileHeld(new
157
162
// ShooterSetTurretVBus(+0.2));// about +30 degrees
158
- DRIVER_PAD .DRIVER_PAD_D_PAD_UP .whenPressed (new ShooterSetHoodAbs ( Shooter .HOOD_INITIATION_LINE_POSITION ));
159
- DRIVER_PAD .DRIVER_PAD_D_PAD_DOWN .whenPressed (new ShooterSetHoodAbs ( Shooter .HOOD_TARGET_ZONE_POSITION ));
163
+ DRIVER_PAD .DRIVER_PAD_D_PAD_UP .whenPressed (new HoodSetAbs ( Hood .HOOD_INITIATION_LINE_POSITION ));
164
+ DRIVER_PAD .DRIVER_PAD_D_PAD_DOWN .whenPressed (new HoodSetAbs ( Hood .HOOD_TARGET_ZONE_POSITION ));
160
165
161
166
// DRIVER_PAD.DRIVER_PAD_D_PAD_LEFT.whenPressed(new
162
167
// ShooterSetTurretRel(-200.0));
@@ -173,13 +178,15 @@ private void configureDriverPadButtons() {
173
178
// DRIVER_PAD.DRIVER_PAD_D_PAD_DOWN.whileHeld(new ShooterSetHoodVBus(-1.0));
174
179
175
180
// Debug shooter pid velocity
176
- DRIVER_PAD .DRIVER_PAD_BLUE_BUTTON .whenPressed (new ShooterAdjustWheel (100.0 ));
177
- DRIVER_PAD .DRIVER_PAD_GREEN_BUTTON .whenPressed (new ShooterAdjustWheel (-100.0 ));
178
- DRIVER_PAD .DRIVER_PAD_RED_BUTTON .whenPressed (new ShooterSetWheelVBus (0.0 ));
179
- DRIVER_PAD .DRIVER_PAD_YELLOW_BUTTON .whenPressed (new ShooterSetWheel (3000 ));
181
+ DRIVER_PAD .DRIVER_PAD_BLUE_BUTTON .whenPressed (new ShooterWheelAdjust (100.0 ));
182
+ DRIVER_PAD .DRIVER_PAD_GREEN_BUTTON .whenPressed (new ShooterWheelAdjust (-100.0 ));
183
+ DRIVER_PAD .DRIVER_PAD_RED_BUTTON .whenPressed (new ShooterWheelSetVBus (0.0 ));
184
+ DRIVER_PAD .DRIVER_PAD_YELLOW_BUTTON .whenPressed (new ShooterWheelSet (3000 ));
185
+
186
+ DRIVER_PAD .DRIVER_PAD_BACK_BUTTON .whileHeld (new DriveStraight (0.1 ));
180
187
// TODO: above hard-coded constant (3000) should be a named constant from Shooter.java
181
188
182
- DRIVER_PAD .DRIVER_PAD_LEFT_UPPER_TRIGGER_BUTTON .whileHeld (new ShooterSetFeeder (1.0 ));
189
+ DRIVER_PAD .DRIVER_PAD_LEFT_UPPER_TRIGGER_BUTTON .whileHeld (new FeederSet (1.0 ));
183
190
184
191
}
185
192
@@ -207,12 +214,11 @@ private void configureOperatorPadButtons() {
207
214
// IntakeSetPosition(RobotContainer.intake.PIVOT_UP));
208
215
// OPERATOR_PAD.OPERATOR_PAD_D_PAD_DOWN.whenPressed(new
209
216
// IntakeSetPosition(RobotContainer.intake.PIVOT_DOWN));
210
- OPERATOR_PAD .OPERATOR_PAD_D_PAD_LEFT .whileHeld (new ShooterSetTurretVBus (-0.2 ));
211
- OPERATOR_PAD .OPERATOR_PAD_D_PAD_RIGHT .whileHeld (new ShooterSetTurretVBus (+0.2 ));
212
- OPERATOR_PAD .OPERATOR_PAD_D_PAD_UP .whileHeld (new ShooterAdjustHood (+1000.0 ));
213
- OPERATOR_PAD .OPERATOR_PAD_D_PAD_DOWN .whileHeld (new ShooterAdjustHood (-1000.0 ));
217
+ OPERATOR_PAD .OPERATOR_PAD_D_PAD_LEFT .whileHeld (new TurretSetVBus (-0.2 ));
218
+ OPERATOR_PAD .OPERATOR_PAD_D_PAD_RIGHT .whileHeld (new TurretSetVBus (+0.2 ));
219
+ OPERATOR_PAD .OPERATOR_PAD_D_PAD_UP .whileHeld (new HoodAdjust (+1000.0 ));
220
+ OPERATOR_PAD .OPERATOR_PAD_D_PAD_DOWN .whileHeld (new HoodAdjust (-1000.0 ));
214
221
215
- // TODO: Consider if below should use "variable power" for climber or just always full speed?
216
222
OPERATOR_PAD .OPERATOR_PAD_RIGHT_Y_AXIS_UP .whileHeld (new ClimberSetWinchesPower (1.0 ));
217
223
OPERATOR_PAD .OPERATOR_PAD_RIGHT_Y_AXIS_DOWN .whileHeld (new ClimberSetWinchesPower (-1.0 ));
218
224
0 commit comments