Function rc_filter_prefill_outputs#
Defined in File filter.h
Function Documentation#
-
int rc_filter_prefill_outputs(rc_filter_t *f, double out)#
Fills all previous outputs of the filter as if they had been equal to ‘out’.
Most useful when starting low-pass filters to prevent unwanted settling time when starting with non-zero input.
- Parameters:
f – Pointer to user’s rc_filter_t struct
out – [in] output value to fill
- Returns:
Returns 0 on success or -1 on failure.