View Single Post
  #2   Spotlight this post!  
Unread 12-01-2011, 18:47
danielcezar danielcezar is offline
Registered User
AKA: Daniel Cezar
FRC #1382 (Etep Team)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Brazil
Posts: 8
danielcezar is an unknown quantity at this point
Re: How do I use interrupt in Java?

I'm trying to call a interrupt each 25ms, because i want to write my own PID control, and with this interrupt i'm acumulate the error to calc the integral.

someone here said me to use a thread, and i did it, a diferent class with with the thread, overwriting the run method. But when i try to call .sleep to wait each 25ms, it stops the intire robot.
Reply With Quote