forked from Archive/PX4-Autopilot
lsm303d: init filter to 773 Hz
This commit is contained in:
parent
2de588e861
commit
f0e50fc87a
|
@ -631,7 +631,7 @@ LSM303D::reset()
|
|||
accel_set_range(LSM303D_ACCEL_DEFAULT_RANGE_G);
|
||||
accel_set_samplerate(LSM303D_ACCEL_DEFAULT_RATE);
|
||||
accel_set_driver_lowpass_filter((float)LSM303D_ACCEL_DEFAULT_RATE, (float)LSM303D_ACCEL_DEFAULT_DRIVER_FILTER_FREQ);
|
||||
accel_set_onchip_lowpass_filter_bandwidth(LSM303D_ACCEL_DEFAULT_ONCHIP_FILTER_FREQ);
|
||||
accel_set_onchip_lowpass_filter_bandwidth(0); // this gives 773Hz
|
||||
|
||||
mag_set_range(LSM303D_MAG_DEFAULT_RANGE_GA);
|
||||
mag_set_samplerate(LSM303D_MAG_DEFAULT_RATE);
|
||||
|
|
Loading…
Reference in New Issue