|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
|||||
|
|||||
|
Re: Encoders With Motor Speeds
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); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|