View Single Post
  #2   Spotlight this post!  
Unread 13-01-2012, 01:25
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: WPILibrary's CANJaguar Class?

Quote:
Originally Posted by duffany1 View Post
Does the CANJaguar included in the WPI Library run on its own interrupt routine? In other words, if we run custom PID code, and we perform functions with Jaguars using CAN, are we going to be 100% sure that our IRQ rate specified in our program (for TeleopPeriodic) will be the actual IRQ rate for the Jags? I need the wisdom of someone experienced with the WPI Library.
The PID algorithm that runs on the Jaguar uses the timer interrupt on the controller internally (every 1ms). It does not depend on an interrupt in the cRIO. That's one of the nice things about using CANJaguar's PID instead of running the PID algorithm on the cRIO. Each control loop has a dedicated microcontroller to run it.