View Single Post
  #3   Spotlight this post!  
Unread 13-11-2013, 04:47
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Running pid loops in a separate thread.

In Java at least, threads are actually pretty easy to use. I usually prefer using a TimerTask than an explicit Thread though. In terms of PID, if you look at PIDController's source, that is exactly what it does -- it's already threaded.
__________________
I code stuff.
Reply With Quote