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_prefill_inputs

Function Documentation

int rc_filter_prefill_inputs(rc_filter_t *f, double in)

Fills all previous inputs to the filter as if they had been equal to ‘in’.

Most useful when starting high-pass filters to prevent unwanted jumps in the output when starting with non-zero input.

Parameters
  • f – Pointer to user’s rc_filter_t struct

  • in[in] Input value to fill

Returns

Returns 0 on success or -1 on failure.