Browse Source

AP_Math: move check_latlng to Location

master
Pierre Kancir 6 years ago committed by Tom Pittenger
parent
commit
e787922ab0
  1. 5
      libraries/AP_Math/location.cpp
  2. 2
      libraries/AP_Math/location.h

5
libraries/AP_Math/location.cpp

@ -114,7 +114,4 @@ bool check_latlng(int32_t lat, int32_t lng) @@ -114,7 +114,4 @@ bool check_latlng(int32_t lat, int32_t lng)
{
return check_lat(lat) && check_lng(lng);
}
bool check_latlng(Location loc)
{
return check_lat(loc.lat) && check_lng(loc.lng);
}

2
libraries/AP_Math/location.h

@ -66,5 +66,3 @@ bool check_lat(int32_t lat); @@ -66,5 +66,3 @@ bool check_lat(int32_t lat);
bool check_lng(int32_t lng);
bool check_latlng(float lat, float lng);
bool check_latlng(int32_t lat, int32_t lng);
bool check_latlng(Location loc);

Loading…
Cancel
Save