|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: can i get some help understanding PID
For Which P,I, or D.
We are using jaguars to control cim motors and also how might you hook up a encoder directly into the jaguar for use with the pid loop Last edited by inkspell4 : 24-01-2012 at 15:41. |
|
#2
|
||||
|
||||
|
Re: can i get some help understanding PID
I think you're assuming that the PID values control only the motor output. In reality, these values are used to control an entire system. One person's kitbot transmission may be different from someone else's which would mean that their values will be different. You have to sit down and tune your robot to how you think it responds better.
The P, I and D will all cause the robot to behave differently. I can recommend as a general rule of thumb to try a value < 1 for I and something around 20~30 for P (I'm not exactly sure on this value). Leave the D at 0 until you tune these. You should definitely read the document mentioned above in order to understand what each value does to the system. Only then will you be able to see what it does and how it reacts. |
|
#3
|
||||
|
||||
|
Re: can i get some help understanding PID
See attachments.
|
|
#4
|
||||
|
||||
|
Re: can i get some help understanding PID
Ether is correct, that's exactly how we've been connecting our encoders for years! Also, keep in mind that if you want to use the built in PID features of the JAGs, you're going to have to implement the CAN Bus. You won't be able to use PWM anymore.
|
|
#5
|
|||
|
|||
|
Re: can i get some help understanding PID
HOW do we control the Jaguar digitally from the cRIO? I am still looking for the C++ API that will allow us to use the serial interface to format and send commands to the Jaguar, and read the status data sent back.
Mike |
|
#6
|
|||||
|
|||||
|
Re: can i get some help understanding PID
Look into the CANJaguar class.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|