mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_SITL: 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
d71776d387
commit
ffa43c1b71
|
@ -949,7 +949,7 @@ void SITL_State::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