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_march

Function Documentation

double rc_filter_march(rc_filter_t *f, double new_input)

March a filter forward one step with new input provided as an argument.

If saturation or soft-start are enabled then the output will automatically be bound appropriately. The steps counter is incremented by one and internal ring buffers are updated accordingly. Once a filter is created, this is typically the only function required afterwards.

Parameters
  • f – Pointer to user’s rc_filter_t struct

  • new_input[in] The new input

Returns

Returns the new output which could also be accessed with the newest_output field in the filter struct.