2424import frc .robot .commands .elevator .JogElevatorCommand ;
2525import frc .robot .commands .elevator .SetElevatorPositionCommand ;
2626import frc .robot .commands .elevator .ZeroElevatorCommand ;
27- import frc .robot .commands .robotState .ToggleAlgaeHeightCommand ;
28- import frc .robot .commands .robotState .ToggleAutoCommand ;
29- import frc .robot .commands .robotState .GetAlgaeCommand ;
27+ import frc .robot .commands .robotState .FloorAlgaeCommand ;
3028import frc .robot .commands .robotState .HPAlgaeCommand ;
31- import frc .robot .commands .robotState .InteruptAutoCommand ;
29+ import frc .robot .commands .robotState .InterruptAutoCommand ;
30+ import frc .robot .commands .robotState .ReefCycleCommand ;
3231import frc .robot .commands .robotState .ScoreAlgaeCommand ;
33- import frc .robot .commands .robotState .ScoreLeftCommand ;
34- import frc .robot .commands .robotState .ScoreReefManualCommand ;
35- import frc .robot .commands .robotState .ScoreRightCommand ;
32+ import frc .robot .commands .robotState .SetScoreSideRightCommand ;
3633import frc .robot .commands .robotState .SetScoringLevelCommand ;
3734import frc .robot .commands .robotState .StowCommand ;
35+ import frc .robot .commands .robotState .ToggleAlgaeHeightCommand ;
36+ import frc .robot .commands .robotState .ToggleAutoCommand ;
3837import frc .robot .commands .robotState .ToggleGetAlgaeCommand ;
38+ import frc .robot .commands .robotState .setScoreSideLeftCommand ;
3939import frc .robot .constants .BiscuitConstants ;
4040import frc .robot .constants .ElevatorConstants ;
4141import frc .robot .constants .RobotConstants ;
@@ -153,7 +153,7 @@ public RobotContainer() {
153153
154154 configureTelemetry ();
155155 configureDriverBindings ();
156- configureTestOperatorBindings ();
156+ configureOperatorBindings ();
157157 }
158158
159159 private void configureTelemetry () {
@@ -171,26 +171,52 @@ private void configureDriverBindings() {
171171 new DriveTeleopCommand (
172172 () -> flysky .getFwd (), () -> flysky .getStr (), () -> flysky .getYaw (), driveSubsystem ));
173173
174- // Reset Gyro Command, stow, and interrupt Auton
174+ // Reset Gyro Command, stow, interrupt Auton, and zero elev
175175 new JoystickButton (driveJoystick , Button .M_SWC .id ).onTrue (new ResetGyroCommand (driveSubsystem ));
176176 new JoystickButton (driveJoystick , Button .SWD .id )
177- .onTrue (new StowCommand (robotStateSubsystem , elevatorSubsystem , coralSubsystem , biscuitSubsystem ))
178- .onFalse (new StowCommand (robotStateSubsystem , elevatorSubsystem , coralSubsystem , biscuitSubsystem ));
177+ .onTrue (
178+ new StowCommand (
179+ robotStateSubsystem , elevatorSubsystem , coralSubsystem , biscuitSubsystem ))
180+ .onFalse (
181+ new StowCommand (
182+ robotStateSubsystem , elevatorSubsystem , coralSubsystem , biscuitSubsystem ));
179183 new JoystickButton (driveJoystick , Button .SWA .id )
180- .onTrue (new InteruptAutoCommand (robotStateSubsystem ))
181- .onFalse (new InteruptAutoCommand (robotStateSubsystem ));
184+ .onTrue (new InterruptAutoCommand (robotStateSubsystem ))
185+ .onFalse (new InterruptAutoCommand (robotStateSubsystem ));
186+ new JoystickButton (driveJoystick , Button .SWB_UP .id )
187+ .onTrue (new ZeroElevatorCommand (elevatorSubsystem ))
188+ .onFalse (new ZeroElevatorCommand (elevatorSubsystem ));
189+ new JoystickButton (driveJoystick , Button .SWB_DWN .id )
190+ .onTrue (new ZeroElevatorCommand (elevatorSubsystem ))
191+ .onFalse (new ZeroElevatorCommand (elevatorSubsystem ));
182192
183193 // other stuff
184194 new JoystickButton (driveJoystick , Button .M_SWH .id )
185- .onTrue (new ScoreReefManualCommand (robotStateSubsystem , elevatorSubsystem , coralSubsystem ));
195+ .onTrue (
196+ new ReefCycleCommand (
197+ robotStateSubsystem ,
198+ elevatorSubsystem ,
199+ coralSubsystem ,
200+ biscuitSubsystem ,
201+ algaeSubsystem ));
186202 new JoystickButton (driveJoystick , Button .M_SWE .id )
187- .onTrue (new ScoreAlgaeCommand (robotStateSubsystem ));
203+ .onTrue (
204+ new ScoreAlgaeCommand (
205+ robotStateSubsystem , elevatorSubsystem , biscuitSubsystem , algaeSubsystem ));
188206 new JoystickButton (driveJoystick , Button .SWF_UP .id )
189- .onTrue (new GetAlgaeCommand (robotStateSubsystem ))
190- .onFalse (new GetAlgaeCommand (robotStateSubsystem ));
207+ .onTrue (
208+ new FloorAlgaeCommand (
209+ robotStateSubsystem , elevatorSubsystem , biscuitSubsystem , algaeSubsystem ))
210+ .onFalse (
211+ new FloorAlgaeCommand (
212+ robotStateSubsystem , elevatorSubsystem , biscuitSubsystem , algaeSubsystem ));
191213 new JoystickButton (driveJoystick , Button .SWF_DWN .id )
192- .onTrue (new GetAlgaeCommand (robotStateSubsystem ))
193- .onFalse (new GetAlgaeCommand (robotStateSubsystem ));
214+ .onTrue (
215+ new FloorAlgaeCommand (
216+ robotStateSubsystem , elevatorSubsystem , biscuitSubsystem , algaeSubsystem ))
217+ .onFalse (
218+ new FloorAlgaeCommand (
219+ robotStateSubsystem , elevatorSubsystem , biscuitSubsystem , algaeSubsystem ));
194220 }
195221
196222 private void configureOperatorBindings () {
@@ -216,16 +242,18 @@ private void configureOperatorBindings() {
216242 new JoystickButton (xboxController , XboxController .Button .kX .value )
217243 .onTrue (new ToggleGetAlgaeCommand (robotStateSubsystem ));
218244 new JoystickButton (xboxController , XboxController .Button .kB .value )
219- .onTrue (new HPAlgaeCommand (robotStateSubsystem ));
245+ .onTrue (
246+ new HPAlgaeCommand (
247+ robotStateSubsystem , elevatorSubsystem , biscuitSubsystem , algaeSubsystem ));
220248
221249 // Scoring
222250 new JoystickButton (xboxController , XboxController .Button .kA .value )
223251 .onTrue (new ToggleAutoCommand (robotStateSubsystem ));
224252
225253 new JoystickButton (xboxController , XboxController .Button .kRightStick .value )
226- .onTrue (new ScoreRightCommand (robotStateSubsystem ));
254+ .onTrue (new SetScoreSideRightCommand (robotStateSubsystem ));
227255 new JoystickButton (xboxController , XboxController .Button .kLeftStick .value )
228- .onTrue (new ScoreLeftCommand (robotStateSubsystem ));
256+ .onTrue (new setScoreSideLeftCommand (robotStateSubsystem ));
229257 }
230258
231259 private void configureTestOperatorBindings () {
0 commit comments