mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[examples] Don't square ArcadeDrive inputs in auto (#4201)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user