|
|
|
@ -222,6 +222,13 @@ float wrap_PI(float angle_in_radians)
@@ -222,6 +222,13 @@ float wrap_PI(float angle_in_radians)
|
|
|
|
|
return angle_in_radians; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
return true if lat and lng match. Ignores altitude and options |
|
|
|
|
*/ |
|
|
|
|
bool locations_are_same(const struct Location &loc1, const struct Location &loc2) { |
|
|
|
|
return (loc1.lat == loc2.lat) && (loc1.lng == loc2.lng); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
print a int32_t lat/long in decimal degrees |
|
|
|
|
*/ |
|
|
|
|