Quote:
Originally Posted by Greg McKaskle
While similar, it may be worth distinguishing interrupts and events. The command-based templates is dispatching events and not implementing interrupt handlers.
|
Greg is correct on this point and I meant to imply that the command-based template provides a high-level "interrupt like behavior" to FRC programmers (post updated). Under the hood, the scheduler uses polling to determine if the input button state has changed. In the limit switch example I gave in my previous post, we created a custom "DigitalIOButton" class that used a DigitalInput class to read the current state of the limit switch from the FPGA.