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_double_integrator

Function Documentation

int rc_filter_double_integrator(rc_filter_t *f, double dt)

Creates a second order double 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.