Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Robot Drive Full Speed on Start When Following Trajectory

If you are running an OpMode that has Roadrunner trajectories in it, and when you start moving it goes at full speed right away, this almost always means you forgot to set a pose estimate. In init(), before you run any trajectories, make sure you have drive.setPoseEstimate(startingPose), whatever your starting pose may be. Make sure that the trajectory starting pose matches this:

Trajectory traj = drive.trajectoryBuilder(startingPose)
    ...
    .build();

This article was last modified:
On 2025-07-08 21:44:18 +10:00
By Oscar Chevalier
See it here: 158ffffd6fe547c954c21e52d0837c9884161803