AP_InertialSensor: setup for MPU9250 support on PX4
This commit is contained in:
parent
baeddfe4f3
commit
dc455a5fd6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user