Function rc_filter_previous_input#
Defined in File filter.h
Function Documentation#
-
double rc_filter_previous_input(rc_filter_t *f, int steps)#
Returns the input ‘steps’ back in time. Steps=0 returns most recent input.
‘steps’ must be between 0 and order inclusively as those are the only steps retained in memory for normal filter operation. To record values further back in time we suggest creating your own rc_ringbuf_t ring buffer.
- Parameters:
f – Pointer to user’s rc_filter_t struct
steps – [in] The steps back in time, steps=0 returns most recent input.
- Returns:
Returns the requested previous input. If there is an error, returns -1.0f and prints an error message.