AP_InertialSensor: MPU6000: publish sample rate

So that vibration and clipping may be calculated.
This commit is contained in:
Gustavo Jose de Sousa 2015-08-28 16:21:39 -03:00 committed by Andrew Tridgell
parent eb480e959c
commit 305ec7b08a

View File

@ -625,6 +625,8 @@ void AP_InertialSensor_MPU6000::start()
_gyro_instance = _imu.register_gyro();
_accel_instance = _imu.register_accel();
_set_accel_sample_rate(_accel_instance, 1000);
hal.scheduler->resume_timer_procs();
// start the timer process to read samples