Firmware for the HARP delphi-controller that implements the state machine shown in the image below:

The firmware registers when an IR beam is broken and classifies it as a poke if the established criteria are met, as well as, emits camera triggers at the prescribed frame rate.