Class: StillAutoTrigger

StillAutoTrigger

Simple switch control using intensity input to output sparse frames of length 1 (scalars), alternating between 1 (start moving) or 0 (stop moving). The detection is based on a schmitt trigger system, and also features a timeout parameter allowing to stay below the low threshold up to a maximum duration without sending the 0 value.

note: this module has no defined output frameRate.

Constructor

new StillAutoTrigger(optionsopt)

Parameters:
Name Type Attributes Description
options Object <optional>

Override default options.

Properties
Name Type Attributes Default Description
onThreshold Number <optional>
0.5

The threshold above which moving starts.

offThreshold Number <optional>
0.01

The threshold below which moving stops.

offDelay Number <optional>
0.2

The maximum duration (timeout) allowed in seconds to stay below the low threshold without propagating a 0.

Source: