View Single Post
  #7   Spotlight this post!  
Unread 29-10-2012, 16:57
TeraViks's Avatar
TeraViks TeraViks is offline
Registered User
AKA: Brian Induni
FRC #3145 (TeraViks)
Team Role: Coach
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Hayden, Idaho
Posts: 33
TeraViks is a jewel in the roughTeraViks is a jewel in the roughTeraViks is a jewel in the roughTeraViks is a jewel in the rough
Re: Interrupts vs. Polling

Thanks to all who answered Adam's question! I'd like to ask a follow on if I could -

I think we understand the difference between Polling and Interrupt, but HOW are these two methods manifested with the program?? We lost our programming mentor and the previous lead was a senior, so we are really having a tough time getting up to speed with troubleshooting last years bot and developing new code.

Adam's initial question comes from assumptions we made in a team meeting about why a motor with a limit switch sometimes behaves properly, sometimes it ignores the limit witch and keeps going. This motor drives a plunger that pushes a ball into the spinner shooter wheels. Sometimes it makes one cycle and stops when the limit switch is activated, sometimes it keeps going on its cycle and doesn't react to the limit switch. We want to try slowing down the cycle to see that makes a difference, and also want to look at the time the switch is polled. Where would that be within the program??

Thanks again for the help!
__________________
Brian
FIRST team 3145 (notice I'm doing Dean's homework!)
The TeraViks
Coeur d'Alene, Idaho