AP_AIS: 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 7fa0b75d48
commit 95065fab35
1 changed files with 2 additions and 2 deletions

View File

@ -309,12 +309,12 @@ bool AP_AIS::get_vessel_index(uint32_t mmsi, uint16_t &index, uint32_t lat, uint
return false;
}
struct Location current_loc;
Location current_loc;
if (!AP::ahrs().get_location(current_loc)) {
return false;
}
struct Location loc;
Location loc;
float dist;
float max_dist = 0;
for (uint16_t i = 0; i < list_size; i++) {