View Single Post
  #4   Spotlight this post!  
Unread 14-04-2012, 22:35
chris1592's Avatar
chris1592 chris1592 is offline
Chris
no team
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2007
Location: Thailand
Posts: 48
chris1592 is a jewel in the roughchris1592 is a jewel in the roughchris1592 is a jewel in the rough
Re: PID Control for Jaguars with PWM?

Quote:
Originally Posted by lorem3k View Post
Thanks. Is there any disadvantage to using the one on the cRIO? I know that CAN has its advantages, but our team is much more familiar with the PWM interface, and we already have all the resources required for it (namely, a whole boatload of cables).

Would the code for using the PID controller differ at all between the cRIO controller and the CAN Jag controller? Which one is handled by the WPILib/WPILibJ PIDController library?
Our team used CAN with our encoder plugged directly into the Jag at our first competition and were disappointed with the results. Tuning the PID values was a lot easier when we ran PWM directly into the cRio.