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