Advertisement
gusto2

Arduino GPS bearing and distance

Jul 4th, 2014
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. GPS bearing and distance computation
  2.  
  3. http://www.instructables.com/id/Distance-measuring-and-more-device-using-Arduino-a/step5/Arduino-programming/
  4.  
  5. The mean circumference of the earth is 2 x 6,371,000m x π = 40,030,170m
  6.  
  7. Δd (lat) = 40,030,170 x ΔΘ (lat) / 360 (assuming ΔΘ is small)
  8. Δd(long) = 40,030,170 x ΔΘ(long) x cosΘm / 360 (Θm: mean latitude between two positions)
  9. Now, the distance is √[Δd (lat)^2 Δd (long)^2]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement