1111import edu .wpi .cscore .VideoSink ;
1212import edu .wpi .first .wpilibj .Joystick ;
1313import edu .wpi .first .wpilibj .buttons .JoystickButton ;
14- import frc .robot .commands .ToggleClimberRails ;
1514import frc .robot .commands .Climb ;
1615import frc .robot .commands .EjectCargo ;
1716import frc .robot .commands .GradualDrive ;
18- import frc .robot .commands .ToggleHatchEject ;
1917import frc .robot .commands .IntakeCargo ;
20- import frc .robot .commands .ToggleHatchIntake ;
18+ import frc .robot .commands .IntakeHatch ;
2119import frc .robot .commands .ManualClimb ;
2220import frc .robot .commands .NormalDrive ;
2321import frc .robot .commands .ResetWobble ;
2422import frc .robot .commands .SetArcadeOrTank ;
2523import frc .robot .commands .SlowDrive ;
2624import frc .robot .commands .ToggleCamera ;
25+ import frc .robot .commands .ToggleClimberRails ;
26+ import frc .robot .commands .ToggleHatchEject ;
2727import frc .robot .commands .ToggleLight ;
2828import frc .robot .commands .WobbleDrive ;
2929import frc .robot .subsystems .Cargo ;
@@ -74,7 +74,7 @@ public class OI {
7474 gradDriveBtn .whenPressed (new GradualDrive ());
7575
7676 hatchIntakeBtn = new JoystickButton (manipulator , Manip .X );
77- hatchIntakeBtn .whenPressed (new ToggleHatchIntake (hp ));
77+ hatchIntakeBtn .whenPressed (new IntakeHatch (hp , dt ));
7878 hatchEjectBtn = new JoystickButton (manipulator , Manip .Y );
7979 hatchEjectBtn .whenPressed (new ToggleHatchEject (hp ));
8080
@@ -83,13 +83,13 @@ public class OI {
8383 cargoEjectBtn = new JoystickButton (manipulator , Manip .B ); // TODO: set ports to correct values
8484 cargoEjectBtn .whenPressed (new EjectCargo (cargo ));
8585
86- climberRailBtn = new JoystickButton (manipulator , Manip .LB_lShoulder );
86+ climberRailBtn = new JoystickButton (manipulator , Manip .RB_rShoulder );
8787 climberRailBtn .whenPressed (new ToggleClimberRails (climber ));
8888
89- autoClimbBtn = new JoystickButton (manipulator , Manip .RT_rTrigger );
89+ autoClimbBtn = new JoystickButton (manipulator , Manip .LT_lTrigger );
9090 autoClimbBtn .toggleWhenPressed (new Climb (climber , dt , leftJoy , lights ));
9191
92- manualClimbBtn = new JoystickButton (manipulator , Manip .LT_lTrigger );
92+ manualClimbBtn = new JoystickButton (manipulator , Manip .RT_rTrigger );
9393 manualClimbBtn .toggleWhenPressed (new ManualClimb (climber , manipulator , lights ));
9494
9595 toggleCameraBtn = new JoystickButton (leftJoy , 2 );
0 commit comments