I implemented this for the F1TENTH. Basically, keeping the car at a constant distance from the wall.
This distance is called the cross track error.
PID Tuning for the VESC
There’s this thing called the PID Loop Rate??
PID for Wall Following
In the context of F1TENTH, we use PID to keep a car centered. We have two control objectives:
- Keep the car driving along the centerline ()
- Keep the car parallel to the walls ()
- We define as after driving meters, we are still on the centerline. ()
Applying the general PID Control equation, we define the error term as The error term is basically Error.