Driving

All steps that move the robot as a whole. They use the drivetrain from your config (differential or mecanum) and the IMU for heading. How the control works inside is in Advanced .

PageWhat it covers
Drive, Turn and Arcdrive_forward, drive_backward, turn_left, turn_right, arcs, speed mode
Strafe and MecanumSideways and diagonal driving on mecanum and omni robots
Until Conditions.until(...), combining conditions with & and |
Absolute Headingmark_heading_reference, turn_to_heading_left, turn_to_heading_right and heading=
Line FollowingFollowing a line with IR sensors
LineupAligning the robot on a line or edge
Smooth Path and Spline MotionDriving through several segments without stopping
Optimizeoptimize([...]): merge segments, cut corners, one closed-loop move
Wall AlignmentSquaring up against a wall

Driving accuracy depends on calibration. Run through Calibration once your robot drives.

Written by Mario Scholze