added builder pattern instead of object pool

This commit is contained in:
66945
2023-02-25 21:14:25 -07:00
parent 94f38856d1
commit e43c44a28c
2 changed files with 11 additions and 13 deletions
@@ -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
}