MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / check_lat

Function check_lat

libraries/AP_Math/location.cpp:37–40  ·  view source on GitHub ↗

return true when lat and lng are within range

Source from the content-addressed store, hash-verified

35
36// return true when lat and lng are within range
37bool check_lat(float lat)
38{
39 return fabsf(lat) <= 90;
40}
41bool check_lng(float lng)
42{
43 return fabsf(lng) <= 180;

Calls

no outgoing calls

Tested by

no test coverage detected