void L3GD20::set_driver_lowpass_filter(float samplerate, float bandwidth) { _gyro_filter_x.set_cutoff_frequency(samplerate, bandwidth); _gyro_filter_y.set_cutoff_frequency(samplerate, bandwidth); _gyro_filter_z.set_cutoff_frequency(samplerate, bandwidth); }
void FXAS21002C::set_sw_lowpass_filter(float samplerate, float bandwidth) { _gyro_filter_x.set_cutoff_frequency(samplerate, bandwidth); _gyro_filter_y.set_cutoff_frequency(samplerate, bandwidth); _gyro_filter_z.set_cutoff_frequency(samplerate, bandwidth); }
int LSM303D::accel_set_driver_lowpass_filter(float samplerate, float bandwidth) { _accel_filter_x.set_cutoff_frequency(samplerate, bandwidth); _accel_filter_y.set_cutoff_frequency(samplerate, bandwidth); _accel_filter_z.set_cutoff_frequency(samplerate, bandwidth); return OK; }