2121import frc .robot .commands .SlowDrive ;
2222import frc .robot .commands .ToggleCamera ;
2323import frc .robot .commands .ToggleHatch ;
24+ import frc .robot .commands .ToggleLight ;
2425import frc .robot .commands .WobbleDrive ;
2526import frc .robot .subsystems .Cargo ;
2627import frc .robot .subsystems .Climber ;
2728import frc .robot .subsystems .Drivetrain ;
2829import frc .robot .subsystems .HatchPanel ;
30+ import frc .robot .subsystems .Lights ;
2931
3032/**
3133 * This class is the glue that binds the controls on the physical operator
@@ -43,9 +45,10 @@ public class OI {
4345 JoystickButton climbBtn ;
4446 JoystickButton toggleCameraBtn ;
4547 JoystickButton wobbleDriveBtn ;
48+ JoystickButton cycleLightBtn ;
4649
47- OI (Drivetrain dt , HatchPanel hp , Cargo cargo , Climber climber , UsbCamera driveCamera , UsbCamera hatchCamera ,
48- VideoSink cameraServer ) {
50+ OI (Drivetrain dt , HatchPanel hp , Cargo cargo , Climber climber , Lights lights , UsbCamera driveCamera ,
51+ UsbCamera hatchCamera , VideoSink cameraServer ) {
4952 leftJoy = new Joystick (0 );
5053 rightJoy = new Joystick (1 );
5154 manipulator = new Joystick (2 );
@@ -79,6 +82,9 @@ public class OI {
7982
8083 toggleCameraBtn = new JoystickButton (leftJoy , 2 );
8184 toggleCameraBtn .whenPressed (new ToggleCamera (driveCamera , hatchCamera , cameraServer ));
85+
86+ cycleLightBtn = new JoystickButton (manipulator , Manip .START );
87+ cycleLightBtn .whenPressed (new ToggleLight (lights ));
8288 }
8389
8490 private class Manip {
0 commit comments