mirror of https://github.com/ArduPilot/ardupilot
AC_Avoidance: 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
34518e433f
commit
86d2f07f3d
|
@ -240,7 +240,7 @@ void AP_OAPathPlanner::avoidance_thread()
|
|||
bool origin_set = false;
|
||||
while (!origin_set) {
|
||||
hal.scheduler->delay(500);
|
||||
struct Location ekf_origin {};
|
||||
Location ekf_origin {};
|
||||
{
|
||||
WITH_SEMAPHORE(AP::ahrs().get_semaphore());
|
||||
origin_set = AP::ahrs().get_origin(ekf_origin);
|
||||
|
|
Loading…
Reference in New Issue