mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
mpu9250: remove define from integrator interval when using i2c
This commit is contained in:
committed by
Beat Küng
parent
8b54346d52
commit
2770e1d2c7
@@ -267,8 +267,8 @@ MPU9250::init()
|
||||
*/
|
||||
if (is_i2c()) {
|
||||
_sample_rate = 200;
|
||||
_accel_int.set_autoreset_interval(1000000 / MPU9250_ACCEL_MAX_OUTPUT_RATE / 4);
|
||||
_gyro_int.set_autoreset_interval(1000000 / MPU9250_GYRO_MAX_OUTPUT_RATE / 4);
|
||||
_accel_int.set_autoreset_interval(1000000 / 1000);
|
||||
_gyro_int.set_autoreset_interval(1000000 / 1000);
|
||||
}
|
||||
|
||||
int ret = probe();
|
||||
|
||||
Reference in New Issue
Block a user