Function rc_filter_integrator#

Function Documentation#

int rc_filter_integrator(rc_filter_t *f, double dt)#

Creates a first order integrator.

Like most functions here, the dynamics are only accurate if the filter is called with a timestep corresponding to dt. Any existing memory allocated for f is freed safely to avoid memory leaks and new memory is allocated for the new filter.

Parameters:
  • f[out] Pointer to user’s rc_filter_t struct

  • dt[in] desired timestep of discrete filter in seconds

Returns:

Returns 0 on success or -1 on failure.