Set maximum publishing rate to match MPU6000

The integrators were set to publish at 800Hz which was overwhelming
the CPU with the EKF running. This brings them in line with what we
get from the MPU6k device.
This commit is contained in:
Nate Weibley
2016-10-05 08:58:57 +02:00
committed by Julian Oes
parent fde165b4f1
commit 71e87cf287
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -55,8 +55,8 @@ BMI160::BMI160(int bus, const char *path_accel, const char *path_gyro, spi_dev_e
_gyro_filter_x(BMI160_GYRO_DEFAULT_RATE, BMI160_GYRO_DEFAULT_DRIVER_FILTER_FREQ),
_gyro_filter_y(BMI160_GYRO_DEFAULT_RATE, BMI160_GYRO_DEFAULT_DRIVER_FILTER_FREQ),
_gyro_filter_z(BMI160_GYRO_DEFAULT_RATE, BMI160_GYRO_DEFAULT_DRIVER_FILTER_FREQ),
_accel_int(1000000 / BMI160_ACCEL_MAX_RATE),
_gyro_int(1000000 / BMI160_GYRO_MAX_RATE, true),
_accel_int(1000000 / BMI160_ACCEL_MAX_PUBLISH_RATE),
_gyro_int(1000000 / BMI160_GYRO_MAX_PUBLISH_RATE, true),
_rotation(rotation),
_checked_next(0),
_last_temperature(0),