|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Encoders With Motor Speeds
We're using the old ones.
|
|
#2
|
|||||
|
|||||
|
Re: Encoders With Motor Speeds
What programming structure are you using? Iterative, Sample, or Command?
|
|
#3
|
|||
|
|||
|
Re: Encoders With Motor Speeds
We're using an iterative structure
|
|
#4
|
|||||
|
|||||
|
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); |
|
#5
|
|||
|
|||
|
Re: Encoders With Motor Speeds
Great thank you! Is there any way that you could help and explain how a PID controller actually works in layman's terms?
|
|
#6
|
||||
|
||||
|
Re: Encoders With Motor Speeds
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|