[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

@@ -27,11 +27,11 @@ class Robot : public frc::TimedRobot {
void AutonomousPeriodic() override {
// Drive for 2 seconds
if (m_timer.Get() < 2_s) {
// Drive forwards half speed
m_robotDrive.ArcadeDrive(0.5, 0.0);
// Drive forwards half speed, make sure to turn input squaring off
m_robotDrive.ArcadeDrive(0.5, 0.0, false);
} else {
// Stop robot
m_robotDrive.ArcadeDrive(0.0, 0.0);
m_robotDrive.ArcadeDrive(0.0, 0.0, false);
}
}