AP_InertialSensor: tidy up MPU6000 driver

This commit is contained in:
Andrew Tridgell 2014-10-16 10:55:38 +11:00
parent 2d47a07480
commit 3ce7667e5a
1 changed files with 2 additions and 1 deletions

View File

@ -507,10 +507,11 @@ bool AP_InertialSensor_MPU6000::_hardware_init(AP_InertialSensor::Sample_rate sa
_sample_count = 2;
break;
case AP_InertialSensor::RATE_200HZ:
default:
default_filter = BITS_DLPF_CFG_20HZ;
_sample_count = 1;
break;
default:
return false;
}
_set_filter_register(_imu.get_filter(), default_filter);