AP_Compass: warn user if fix_radius() is skipped

This commit is contained in:
Willian Galvani 2024-07-01 21:38:50 -03:00 committed by Andrew Tridgell
parent 325d6f6c94
commit 64e859ecc5
1 changed files with 1 additions and 0 deletions

View File

@ -1067,6 +1067,7 @@ bool CompassCalibrator::fix_radius(void)
{
Location loc;
if (!AP::ahrs().get_location(loc) && !AP::ahrs().get_origin(loc)) {
GCS_SEND_TEXT(MAV_SEVERITY_WARNING, "MagCal: No location, fix_radius skipped");
// we don't have a position, leave scale factor as 0. This
// will disable use of WMM in the EKF. Users can manually set
// scale factor after calibration if it is known