View Single Post
  #3   Spotlight this post!  
Unread 10-08-2009, 12:45
Jared Russell's Avatar
Jared Russell Jared Russell is online now
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Multithreaded programs

WPILib includes nice helper classes that can help you set up multithreading pretty easily. Take a look at Task, Notifier, and Synchronized, in particular.

The WPILib PIDController implementation uses these classes to set up a thread that periodically calculates the next output value. Take a look at PIDController.cpp to see how to use them.
Reply With Quote