AP_Compass: disable COMPASS_LEARN when mag calibration used

This commit is contained in:
Andrew Tridgell 2015-09-07 08:07:07 +10:00
parent 6c74782997
commit 2baa0ac2f2

View File

@ -52,6 +52,10 @@ Compass::start_calibration(uint8_t i, bool retry, bool autosave, float delay, bo
}
_calibrator[i].start(retry, autosave, delay);
_compass_cal_autoreboot = autoreboot;
// disable compass learning both for calibration and after completion
_learn.set_and_save(0);
return true;
}