aw_transform

Function heartbeat

Source
pub fn heartbeat(
    last_event: &Event,
    heartbeat: &Event,
    pulsetime: f64,
) -> Option<Event>
Expand description

Returns a merged event if two events have the same data and are within the pulsetime

§Example

pulsetime: 1 second (one space)
input:  [a] [a]  [a][b]
output: [a    ]  [a][b]