lerp kinda works

This commit is contained in:
aarav18
2023-02-11 15:21:44 -07:00
parent 3259182ea4
commit 1e79aa28ee
4 changed files with 695 additions and 175 deletions
+3
View File
@@ -74,6 +74,7 @@ public class Robot extends TimedRobot {
*/
@Override
public void autonomousInit() {
m_robotContainer.m_robotSwerveDrive.resetGyro();
m_autonomousCommand = m_robotContainer.getAutonomousCommand();
// schedule the autonomous command (example)
@@ -92,6 +93,7 @@ public class Robot extends TimedRobot {
@Override
public void teleopInit() {
m_robotContainer.m_robotSwerveDrive.resetGyro();
// This makes sure that the autonomous stops running when
// teleop starts running. If you want the autonomous to
// continue until interrupted by another command, remove
@@ -99,6 +101,7 @@ public class Robot extends TimedRobot {
if (m_autonomousCommand != null) {
m_autonomousCommand.cancel();
}
m_robotContainer.m_robotSwerveDrive.resetGyro();
m_robotTime.startMatchTime();
}