Skip to content

Mr. Phil's Simplified Odometry Tutorial

Notifications You must be signed in to change notification settings

gearsincorg/SimplifiedOdometry

Repository files navigation

Phil's Simplified FTC Odometry Tutorial.

This tutorial presents an alternative approach to FTC odometry, one that combines the ability to accurately measure how the robot is moving, with simple straight-line motions.

Lots of FTC teams (especially rookies, or teams without strong software mentorship) struggle with autonomous programming. As more teams adopt Omni (holonomic) drive trains like Mecanum and X drive, the problem has only grown. These drives don’t act predictably, often drifting off course, so it’s hard to tell exactly where a robot is going in autonomous just by watching what the driven wheels are doing.

Non-powered “follower” wheels were added to robots to measure the actual motion across the field, and so FTC Odometry was born. But now teams have to figure out how to use this new Odometry input.

If teams have access to one or more adventurous programmers, they can try using some of the more advanced Odometry tools like RoadRunner and MeepMeep. These tools treat the field as an X/Y coordinate grid, and can plan and execute complex curved motions. But these tools have steep learning curves, and rely on some sophisticated testing, so they don’t always lead to success.

I think something simpler is needed, so this tutorial is going to take a different approach.

To try this code in Android Studio: Simply copy the three Java files into your lowest-level teamcode folder and build your project.

To try this code in OnBotJava: Use the "Upload" button to transfer all three files into your "Project Files" region (see upload.jpg here), and then just do a "Build Everything".

NOTE:

This tutorial consists of four YouTube videos.

Part 1: Overview. https://youtu.be/lpVG2Pl6RGY An introduction to the purpose of this FTC tutorial, and some of the caveats that are assumed in its application.

Part 2: Autonomous. https://youtu.be/EV7n9rGcxF4 A walk-through of a sample Autonomous OpMode.

Part 3: Teleoperation. https://youtu.be/X7RyAMbP240 A walk-through of a sample Telop. OpMode.

Part 4: SimplifiedMecanumRobot Class. https://youtu.be/eWzGW7ZcPh8 A detailed walk-through of the hardware class itself, explaining how the class works and how to adapt it to your robot. Note: This walkthrough was created before the Robot class was renamed to be SimplifiedMecanumRobot so the sample works in OnBotJava.

I hope you find this helpful.

Mr. Phil.

About

Mr. Phil's Simplified Odometry Tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages