Quote:
Originally Posted by TeraViks
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.