AP_InertialSensor: use init_gyro() on startup

this saves the calibration parameters which should be done on
calibration
This commit is contained in:
Andrew Tridgell 2016-11-05 20:19:29 +11:00
parent 408593465f
commit 106a91c64c
1 changed files with 1 additions and 1 deletions

View File

@ -624,7 +624,7 @@ AP_InertialSensor::init(uint16_t sample_rate)
// calibrate gyros unless gyro calibration has been disabled
if (gyro_calibration_timing() != GYRO_CAL_NEVER) {
_init_gyro();
init_gyro();
}
_sample_period_usec = 1000*1000UL / _sample_rate;