Quote:
Originally Posted by 2386programming
We're using an iterative structure
|
What you'll want to do is look at the
Encoder class and make sure to configure the distancePerPulse. Then you will pass that encoder into a
PIDController along with the motor you want to control with it.
Code:
PIDController leftFrontWheel = new PIDController(p, i, d, leftFrontEncoder, leftFrontTalon);