Class globals aircraft lowpass
lowpass ============================================================================== class that implements a variable-interval EWMA (Exponentially Weighted Moving Average) lowpass filter with characteristics independent of the frame rate. SYNOPSIS: lowpass.new(<coefficient>); EXAMPLE: var lp = aircraft.lowpass.new(1.5); print(lp.filter(10)); # prints 10 print(lp.filter(0));
Functions
filter
filter(raw_value) -> push new value, returns filtered value
get
get() -> returns filtered value
set
set() -> sets new average and returns it