Almost finished 6 ball auto, just a little too wide

This commit is contained in:
Aarav Shah
2020-03-07 18:24:58 -07:00
parent 08bc9f3e45
commit afff5226c1
10 changed files with 18 additions and 15 deletions
@@ -259,9 +259,13 @@ public class RobotContainer {
//RamseteCommand ramseteCommand = getRamseteCommand(trajectory);
// Run path following command, then stop at the end.
return m_sixBallAutoMiddle.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0));
try {
return m_sixBallAutoMiddle.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0));
} catch (Exception e) {
System.err.println("ERROR");
}
//return new InstantCommand();
return new InstantCommand();
}
TrajectoryConfig getTrajectoryConfig() {
return new TrajectoryConfig(