mirror of
https://github.com/Team4388/2023WayOfTheRobot.git
synced 2026-06-09 00:37:59 -06:00
added builder pattern instead of object pool
This commit is contained in:
@@ -105,8 +105,9 @@ public class RobotContainer {
|
||||
|
||||
// chooser.addOption("Taxi", taxi);
|
||||
|
||||
playbackChooser = new PlaybackChooser(m_robotSwerveDrive,
|
||||
"Balance", new AutoBalance(m_robotMap.gyro, m_robotSwerveDrive));
|
||||
playbackChooser = new PlaybackChooser(m_robotSwerveDrive)
|
||||
.addOption("Balance", new AutoBalance(m_robotMap.gyro, m_robotSwerveDrive))
|
||||
.buildDisplay();
|
||||
}
|
||||
|
||||
|
||||
@@ -137,9 +138,6 @@ public class RobotContainer {
|
||||
"Blue1Path.txt"))
|
||||
.onFalse(new InstantCommand());
|
||||
|
||||
// new JoystickButton(getDeadbandedDriverController(), XboxController.LEFT_BUMPER_BUTTON)
|
||||
// .onTrue(new JoystickPlayback(m_robotSwerveDrive, "Blue1Path.txt"));
|
||||
|
||||
// * Operator Buttons
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user