View Single Post
  #4   Spotlight this post!  
Unread 27-01-2012, 19:52
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Help Setting Up PID System for Tank Drive Train

Quote:
Originally Posted by l0stboy View Post
That makes sense. Would there be link anywhere for some sample code of that?
I don't have the FRC Java installed here. I'll let a Java guru answer that.

You must use CAN bus (instead of PWM) to control the Jags if you want to use their built-in PID.

Depending on what you want to accomplish with the encoders, you may be better off connecting them to the cRIO rather than the Jag, and run your controller in the cRIO (either home-brew or the PID in WPILib library).


Last edited by Ether : 27-01-2012 at 19:56.
Reply With Quote