AP_InertialSensor: setup for MPU9250 support on PX4

This commit is contained in:
Andrew Tridgell 2015-08-01 21:38:15 +10:00
parent baeddfe4f3
commit dc455a5fd6

View File

@ -103,6 +103,7 @@ bool AP_InertialSensor_PX4::_init_sensor(void)
switch(devid) {
case DRV_GYR_DEVTYPE_MPU6000:
case DRV_GYR_DEVTYPE_MPU9250:
// hardware LPF off
ioctl(fd, GYROIOCSHWLOWPASS, 256);
// khz sampling
@ -140,6 +141,7 @@ bool AP_InertialSensor_PX4::_init_sensor(void)
switch(devid) {
case DRV_ACC_DEVTYPE_MPU6000:
case DRV_ACC_DEVTYPE_MPU9250:
// hardware LPF off
ioctl(fd, ACCELIOCSHWLOWPASS, 256);
// khz sampling