mirror of
https://github.com/Team4388/2023WayOfTheRobot.git
synced 2026-06-09 00:37:59 -06:00
chooser moved to Robot.java
This commit is contained in:
@@ -64,7 +64,7 @@ public class RobotContainer {
|
||||
private final DeadbandedXboxController m_operatorXbox = new DeadbandedXboxController(OIConstants.XBOX_OPERATOR_ID);
|
||||
|
||||
/* Autos */
|
||||
private SendableChooser<Command> chooser = new SendableChooser<>();
|
||||
public SendableChooser<Command> chooser = new SendableChooser<>();
|
||||
|
||||
private Command noAuto = new InstantCommand();
|
||||
|
||||
@@ -102,8 +102,6 @@ public class RobotContainer {
|
||||
chooser.addOption("Red1PathWithBalance", red1PathWithBalance);
|
||||
|
||||
chooser.addOption("Taxi", taxi);
|
||||
|
||||
SmartDashboard.putData(chooser);
|
||||
}
|
||||
|
||||
|
||||
@@ -134,8 +132,8 @@ public class RobotContainer {
|
||||
"Blue1Path.txt"))
|
||||
.onFalse(new InstantCommand());
|
||||
|
||||
new JoystickButton(getDeadbandedDriverController(), XboxController.LEFT_BUMPER_BUTTON)
|
||||
.onTrue(new JoystickPlayback(m_robotSwerveDrive, "Blue1Path.txt"));
|
||||
// new JoystickButton(getDeadbandedDriverController(), XboxController.LEFT_BUMPER_BUTTON)
|
||||
// .onTrue(new JoystickPlayback(m_robotSwerveDrive, "Blue1Path.txt"));
|
||||
|
||||
// * Operator Buttons
|
||||
}
|
||||
@@ -148,7 +146,6 @@ public class RobotContainer {
|
||||
public Command getAutonomousCommand() {
|
||||
|
||||
return chooser.getSelected();
|
||||
// return new InstantCommand();
|
||||
}
|
||||
|
||||
public DeadbandedXboxController getDeadbandedDriverController() {
|
||||
|
||||
Reference in New Issue
Block a user