finished 5 ball

This commit is contained in:
Aarav Shah
2020-03-11 19:41:56 -06:00
parent 8b3ce633d6
commit 18021fbdeb
5 changed files with 12 additions and 6 deletions
@@ -325,8 +325,8 @@ public class RobotContainer {
//return m_eightBallAutoMiddle.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0));
//return m_driveOffLineForward.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0));
//return m_driveOffLineBackward.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0));
//return m_fiveBallAutoMiddle.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0));
return m_tenBallAutoMiddle.andThen(()-> m_robotDrive.tankDriveVelocity(0, 0));
return m_fiveBallAutoMiddle.andThen(() -> m_robotDrive.tankDriveVelocity(0, 0));
//return m_tenBallAutoMiddle.andThen(()-> m_robotDrive.tankDriveVelocity(0, 0));
} catch (Exception e) {
System.err.println("ERROR");
@@ -438,6 +438,10 @@ public class RobotContainer {
m_robotDrive.setOdometry(pose);
}
public void resetGyroYawRobotContainer(double angle) {
m_robotDrive.resetGyroYaw(angle);
}
/**
* Used for analog inputs like triggers and axises.
* @return IHandController interface for the Driver Controller.