I am new to P.I.D control and I’m trying to use it to program my robot. I found some some tutorial videos on how to use it but I got stuck at a certain point.
In the past, I have been using the Drivetrain function instead of a left_motor and right_motor for programming. However, I can’t figure out how to use P.I.D with it. Can I use the Drivetrain function with P.I.D at all, and if so, how would I measure position of the Drivetrain?
Here is the code that I’m working on and the link to the tutorial where I got it from…