@@ -58,7 +58,7 @@ public class RobotContainer
5858{
5959
6060 // Replace with CommandPS4Controller or CommandJoystick if needed
61- final CommandXboxController driverXbox = new CommandXboxController (0 );
61+ final CommandXboxController driverXbox = new CommandXboxController (0 );
6262 final CommandJoystick redbuttonbox = new CommandJoystick (1 );
6363 final CommandJoystick otherbuttonbox = new CommandJoystick (2 );
6464 // The robot's subsystems and commands are defined here...
@@ -270,11 +270,16 @@ private void configureBindings()
270270 //TODO: ask Eddie how to fix these.
271271 redbuttonbox .button (8 ).whileTrue (intakeSubsystem .RunIntake ());
272272 // Why is this subsystem function not returning a runable? check the subsystem again.
273- redbuttonbox .button (9 ).whileTrue (intakeStopCommand );
273+ redbuttonbox .button (9 ).whileTrue (raiseIntakeCommand );
274274 redbuttonbox .button (10 ).whileTrue (shooterMotorSubsystem .ForwordSlowSpin (0.5 ));
275275 otherbuttonbox .button (1 ).whileTrue (shooterMotorSubsystem .ForwordSlowSpin (-0.5 ));
276- otherbuttonbox .button (3 ).whileTrue (shooterMotorSubsystem .ForwordSlowSpin (.75 ));
277276 otherbuttonbox .button (2 ).whileTrue (shooterMotorSubsystem .SpinStop ());
277+ otherbuttonbox .button (3 ).whileTrue (shooterMotorSubsystem .ForwordSlowSpin (.75 ));
278+ otherbuttonbox .button (4 ).whileTrue (indexer .StopSpin ());
279+
280+ driverXbox .b ().whileTrue (indexer .StopSpin ());
281+ driverXbox .rightTrigger ().whileTrue (intakeSubsystem .goToPositionCommand (0 ));
282+ driverXbox .leftTrigger ().whileTrue (intakeSubsystem .goToPositionCommand (25.5 ));
278283
279284
280285 // buttonBox2.(button5 ).onTrue(algaeArm.ArmStop().andThen(roller.CoralStop()).andThen(climber.ClimbStop()));
0 commit comments