View Single Post
  #9   Spotlight this post!  
Unread 31-10-2012, 00:56
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Interrupts vs. Polling

Quote:
Originally Posted by TeraViks View Post
I think we understand the difference between Polling and Interrupt, but HOW are these two methods manifested with the program??
As far as I am aware, there is no interrupt system directly available to programmers in FRC. Interrupts are typically a very low-level construct used by firmware, drivers, or the operating system. If you're working primarily through WPILib, there may be some interrupts making things happen behind the scenes, if only to facilitate FPGA functionality and threading, but almost everything else is polling-based.

For your problem, to find the offending code, I recommend doing a ctrl+shift+F search of your whole project to see when the limit switch is read. From your description of the bug, it sounds like the limit switch is either being checked at the wrong times or not being checked frequently enough. It may only be checking it once, which would explain why it could continue while ignoring the limit switch.