Function rc_filter_third_order_complement#

Function Documentation#

int rc_filter_third_order_complement(rc_filter_t *lp, rc_filter_t *hp, double freq, double damp, double dt)#

Creates a third order symmetric complementary pair of high/low pass filters.

Parameters:
  • lp – lowpass filter to be populated

  • hp – highpass filter to be populated

  • freq[in] crossover frequency in rad/s

  • damp[in] Damping ratio >0, 1 is critically damped, lower than that gets wobbly

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

Returns:

0 on success or -1 on failure.