Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.4 KB

README.md

File metadata and controls

28 lines (17 loc) · 1.4 KB

Team Hot Rods

BWSI 2021 RACECAR Grand Prix Code

Contributors :

All of us pushed an all nighter for this. Thanks for a great BWSI everyone ♥️

Watch

You can watch a video of our record playthrough here.The 2021 Grand Prix Record

Usage

  • grand_prix_fast.py runs our record time code for the GP (opting to use line following for certain segments as it is faster).

  • grand_prix.py runs our code with each segment completed as intended, but produces a slower time.

Run racecar sim grand_prix.py with the Simulator Environment open to run the code.

Structure

Each Python module inside /grand_prix contains the code for a particular segment of the track.

grand_prix.py and grand_prix_fast.py pass the Racecar object to each of these modules as they detect AR Markers along the course. The file mappings are stored inside a dict mapped to an IntEnum for AR detection in both Grand Prix files.