mirror of https://github.com/ArduPilot/ardupilot
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:
parent
7fa0b75d48
commit
95065fab35
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue