Stanford University School of Engineering
This system works as an autonomous robot navigation program. It uses a differential drive, a payload servo, and a sensor suite including Time-of-Flight (TOF), an IMU, an IR sensor, and a line array.
The cycle starts with a Corner Start escape maneuver, leading into a 360-degree Scanning phase. The robot maps infrared intensity to locate two distinct beacons and calculates a precise navigational midpoint.
After pivoting to face this midpoint, the robot enters Forward Drive. It relies heavily on gyroscope feedback to maintain a strict, drift-free heading as it crosses open space.
It then transitions to Dynamic PID Line Following, hunting for and tracking a floor path. It dynamically adjusts motor speeds to prevent overshooting until the sensors detect the final destination (the "hog line").
Upon arrival, the Open Hold phase triggers a hard brake and actuates the servo to dump the payload.
Finally, the Reverse phase uses the gyro to back up perfectly straight. After a brief Wait period to clear the drop zone, the robot is manually reset to repeat the entire mission.
View our GitHub repository for the full code. Our code depends on PlatformIO.