The field is a graph
To tell a robot "go there," you need a way to name every spot on the field. That's what X and Y coordinates are for.
X, Y, and heading Y goes forward. If the robot drives straight ahead 24 inches, Y goes from 0 to 24. X goes right. Slide 24 inches right and X becomes 24. Left is negative. Heading (also called theta or θ) is which way the robot faces, in degrees. 0 is straight ahead, 90 is right, 180 is backward, 270 (or -90) is left. It goes clockwise , like a compass. Everything is in inches . One foam tile is 24 inches, and the whole field is 6 tiles, which is 144 inches on each side. Where is (0, 0)? Wherever you say! At the start of auton you write chassis.setPose(0, 0, 0); which means "right now I'm at (0, 0), facing 0°." Every spot after that is measured from where the robot started. Lab: Coordinate finder click the field Click anywhere on the field. The robot starts at (0, 0) facing up. Try these Click one tile straight ahead of the robot. You should get about (0, 24). Click one tile to the right of that. Now it's about (24, 24). Click behind the robot. Y turns negative.
Ends with a 10-question quiz.
Next mission: How tracking wheels count
All Odometry Academy missions
- Why your auton drifts · about 30 min
- The field is a graph · about 30 min
- How tracking wheels count · about 35 min
- From blocks to C++ · about 35 min
- Build your robot's config · about 45 min
- Test your odometry · about 35 min
- Your first moves · about 40 min
- Auton Builder · about 35 min
- Tuning with PID · about 45 min
- Plan an autonomous route · about 40 min
- Fix-it guide · about 30 min
- Install PROS + LemLib · about 40 min