diff options
author | Andrew Tridgell <tridge@samba.org> | 2013-08-06 16:33:01 +1000 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-06 09:07:12 +0200 |
commit | 338e506a28e4233bc8a16493530f3b82a0dd67e9 (patch) | |
tree | 84ba2e75849dab844fb5d1371c887c3f9c20fdef /src/drivers/mpu6000 | |
parent | cfd737aa734f9b0cd97f79148d6b959978b2cad0 (diff) | |
download | px4-firmware-338e506a28e4233bc8a16493530f3b82a0dd67e9.tar.gz px4-firmware-338e506a28e4233bc8a16493530f3b82a0dd67e9.tar.bz2 px4-firmware-338e506a28e4233bc8a16493530f3b82a0dd67e9.zip |
mpu6000: set the default DLFP filter to 42Hz
this allows for apps to ask for slightly higher filters with the
software filter and not have it completely ruined by the on-chip DLPF
Diffstat (limited to 'src/drivers/mpu6000')
-rw-r--r-- | src/drivers/mpu6000/mpu6000.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/mpu6000/mpu6000.cpp b/src/drivers/mpu6000/mpu6000.cpp index be0a04028..c4e331a30 100644 --- a/src/drivers/mpu6000/mpu6000.cpp +++ b/src/drivers/mpu6000/mpu6000.cpp @@ -477,7 +477,7 @@ void MPU6000::reset() // FS & DLPF FS=2000 deg/s, DLPF = 20Hz (low pass filter) // was 90 Hz, but this ruins quality and does not improve the // system response - _set_dlpf_filter(20); + _set_dlpf_filter(42); usleep(1000); // Gyro scale 2000 deg/s () write_reg(MPUREG_GYRO_CONFIG, BITS_FS_2000DPS); |