This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_filter_previous_input

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.

  • f – Pointer to user’s rc_filter_t struct

  • steps[in] The steps back in time, steps=0 returns most recent input.


Returns the requested previous input. If there is an error, returns -1.0f and prints an error message.