Skip to content

Commit

Permalink
AP_Compass: warn user if fix_radius() is skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Jul 2, 2024
1 parent 22425ba commit 8ece859
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/AP_Compass/CompassCalibrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ece859

Please sign in to comment.