mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
AP_InertialSensor: use init_gyro() on startup
this saves the calibration parameters which should be done on calibration
This commit is contained in:
parent
408593465f
commit
106a91c64c
@ -624,7 +624,7 @@ AP_InertialSensor::init(uint16_t sample_rate)
|
|||||||
|
|
||||||
// calibrate gyros unless gyro calibration has been disabled
|
// calibrate gyros unless gyro calibration has been disabled
|
||||||
if (gyro_calibration_timing() != GYRO_CAL_NEVER) {
|
if (gyro_calibration_timing() != GYRO_CAL_NEVER) {
|
||||||
_init_gyro();
|
init_gyro();
|
||||||
}
|
}
|
||||||
|
|
||||||
_sample_period_usec = 1000*1000UL / _sample_rate;
|
_sample_period_usec = 1000*1000UL / _sample_rate;
|
||||||
|
Loading…
Reference in New Issue
Block a user