build and tune fast, stable line following for lego spike robots programmed with pybricks. use when the user asks for proportional or pd control, gap recovery, intersections, edge selection, rescue line behavior, or precision line following on black or colored tracks.
Create stable line-following code and tuning plans that match the actual course, sensor geometry, and required competition speed.
assets/pd_line_follow_template.py and adapt it.references/control-patterns.md for tuning logic.assets/pd_line_follow_template.py as the code base.