AP_Compass: avoid using struct Location

clang reports this could be a problem when compiling under some EABIs.  Remove it from most places as it is just noise, replace with class where we want to avoid including Location.h
This commit is contained in:
Peter Barker 2023-02-03 09:58:38 +11:00 committed by Peter Barker
parent 1dff5b5710
commit 8155e0ab3b

View File

@ -1068,7 +1068,7 @@ bool CompassCalibrator::fix_radius(void)
_params.scale_factor = 0;
return true;
}
const struct Location &loc = AP::gps().location();
const Location &loc = AP::gps().location();
float intensity;
float declination;
float inclination;