Photogate (source code)

= Photogate

A <photogate> detects interruption of a light beam. Timing that interruption and independently measuring the flag length gives its average <speed> during passage; the direction must be assigned separately.