@@ -41,25 +41,29 @@ public RobotContainer() {
4141 private void configureButtonBindings () {
4242
4343 new JoystickButton (joy , AUTO_TURN_AND_MOVE_BUTTON_ID ).whenHeld (new ShootHighGoal (drivetrain , locationator , shooter , limelight ));
44+
4445 new JoystickButton (joy , AUTO_TURN_BUTTON_ID ).whenHeld (new AssistedShootHighGoal (drivetrain , shooter , limelight , joy ));
45- new JoystickButton (joy , AUTO_BALL_TARCKING ).whenHeld (new PickupBallAuto (drivetrain , locationator , limelight , feeder ));
46- new JoystickButton (joy , SHOOTER_BUTTON_ID ).whenHeld (new InstantCommand (shooter ::shoot )).whenReleased (new InstantCommand (shooter ::stopShoot ));
47- new JoystickButton (joy , CLIMBER_UP_BUTTON_ID ).whenHeld (new InstantCommand (climber ::ScissorUp )).whenReleased (new InstantCommand (climber ::StopClimb ));
48- // new JoystickButton(joy, CLIMBER_DOWN_BUTTON_ID).whenHeld(
49- // new InstantCommand(climber::ScissorDown)
50- // .alongWith(new InstantCommand(climber::WinchDown)))
51- // .whenReleased(new InstantCommand(climber::StopClimb));
52- new JoystickButton (joy , SCISSORS_DOWN_BUTTON_ID ).whenHeld (new InstantCommand (climber ::ScissorDown ));
53- new JoystickButton (joy , WINCH_DOWN_BUTTON_ID ).whenHeld (new InstantCommand (climber ::WinchDown ));
54- new JoystickButton (joy , WINCH_RELEASE_BUTTON_ID ).whenHeld (new InstantCommand (climber ::WinchRelease ));
55-
56- new JoystickButton (joy , INTAKE_BUTTON_ID )
57- .whenHeld (
58- new InstantCommand (intake ::driverIntake )
59- .alongWith (new InstantCommand (feeder ::moveCells )))
60- .whenReleased (
61- new InstantCommand (intake ::stopIntake )
62- .alongWith (new InstantCommand (feeder ::stopCells )));
46+
47+ //new JoystickButton(joy, AUTO_BALL_TRACKING).whenHeld(new PickupBallAuto(drivetrain, locationator, limelight, feeder));
48+
49+ //new JoystickButton(joy, GRANNY_MODE_BUTTON_ID).whenPressed(new InstantCommand(drivetrain::toggleSpeed));
50+
51+ new JoystickButton (joy , SHOOTER_BUTTON_ID ).whenHeld (new InstantCommand (shooter ::shoot ));
52+ //.whenReleased(new InstantCommand(shooter::stopShoot));
53+
54+ new JoystickButton (joy , CLIMBER_UP_BUTTON_ID ).whenHeld (new InstantCommand (climber ::ScissorUp ));
55+ //.whenReleased(new InstantCommand(climber::StopClimb));
56+
57+ new JoystickButton (joy , CLIMBER_DOWN_BUTTON_ID ).whenHeld (new InstantCommand (climber ::ScissorDown ).alongWith (new InstantCommand (climber ::WinchDown )));
58+
59+ new JoystickButton (joy , INTAKE_EXCRETE_BUTTON_ID ).whenHeld (new InstantCommand (intake ::spitout ));
60+
61+ new JoystickButton (joy , INTAKE_BUTTON_ID ).whenHeld (new InstantCommand (intake ::driverIntake ).alongWith (new InstantCommand (feeder ::moveCells )));
62+ //.whenReleased(new InstantCommand(intake::stopIntake).alongWith(new InstantCommand(feeder::stopCells)));
63+
64+ new JoystickButton (joy , WINCH_DOWN_BUTTON_ID ).whenHeld (new InstantCommand (climber ::WinchDown )).whenReleased (new InstantCommand (climber ::StopClimb ));
65+
66+ new JoystickButton (joy , WINCH_FORWARD_BUTTON_ID ).whenHeld (new InstantCommand (climber ::WinchForward )).whenReleased (new InstantCommand (climber ::StopClimb ));
6367
6468 drivetrain .setDefaultCommand (new driveDefaultCommand (drivetrain , joy ).perpetually ());
6569 }
@@ -77,8 +81,8 @@ public driveDefaultCommand(Drivetrain drivetrain, Joystick joystick) {
7781
7882 @ Override
7983 public void execute () {
80- drivetrain .drive (joystick .getRawAxis (XBOX_X_AXIS_ID ), joystick .getRawAxis (XBOX_Y_AXIS_ID ), 1 );
81- //drivetrain.drive(-.5, -.5, 1 );
84+ drivetrain .drive (joystick .getRawAxis (XBOX_X_AXIS_ID ), joystick .getRawAxis (XBOX_Y_AXIS_ID ), .7 );
85+ //drivetrain.XBoxDrive(joystick );
8286 }
8387 }
8488
0 commit comments