View Single Post
  #15   Spotlight this post!  
Unread 14-04-2014, 20:07
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: using interrupts in FRC

Quote:
Originally Posted by virtuald View Post
I would probably recommend restructuring the code so that everything can run in a single thread. In an FRC context, my opinion is that typically threads cause more trouble than they're worth.
Yikes - a little conservative maybe?. We have a a world-class real-time multi-tasking OS at our disposal and we don't use it? In years where our students don't "get" the multi-tasking from the start I create templates that prevent them from messing up the timing. WPILib hides synchronization and mutual exclusion pretty well and the messaging API is straight forward. By the end of build season the students always seem to "get it".
__________________
Fast, cheap or working - pick any two!