View Single Post
  #8   Spotlight this post!  
Unread 22-03-2004, 16:06
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: counting digital input

Quote:
Originally Posted by Astronouth7303
None of that is going to work if you're going at any resonable speed. It's going to miss ticks. Use interupts.
True, it may not be the most reliable thing in the world, but it is simple. Plus, if you do the polling from outside the 26.2ms part, you shouldn't have many problems. I went with polling after another kid on our controls team couldn't figure the interrupts out and we haven't had problems yet.

But, I agree with you. Use interrupts if you can.
__________________