mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_HAL: 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:
parent
5423dd0210
commit
d71776d387
@ -370,7 +370,7 @@ void SIMState::set_height_agl(void)
|
||||
// get height above terrain from AP_Terrain. This assumes
|
||||
// AP_Terrain is working
|
||||
float terrain_height_amsl;
|
||||
struct Location location;
|
||||
Location location;
|
||||
location.lat = _sitl->state.latitude*1.0e7;
|
||||
location.lng = _sitl->state.longitude*1.0e7;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user