[examples] Don't square ArcadeDrive inputs in auto (#4201)

This commit is contained in:
Jason Daming
2022-04-30 22:19:32 -05:00
committed by GitHub
parent 18ff694f02
commit 63cf3aaa3f
2 changed files with 5 additions and 4 deletions

View File

@@ -47,7 +47,8 @@ public class Robot extends TimedRobot {
public void autonomousPeriodic() {
// Drive for 2 seconds
if (m_timer.get() < 2.0) {
m_robotDrive.arcadeDrive(0.5, 0.0); // drive forwards half speed
// Drive forwards half speed, make sure to turn input squaring off
m_robotDrive.arcadeDrive(0.5, 0.0, false);
} else {
m_robotDrive.stopMotor(); // stop robot
}