GPS Utilities: Calculate distance and bearing using Haversine method
Chuck Rice
Posts: 210
I needed distance and bearing calculations for my robot, so I created a new object that
calculates these. See the comments for example calling sequence. The
commLink.cprintf(...) calls are calls to multiCallSerialDebug from the object
exchange. They are not needed by the object, but I use them for debugging.
Post Edited (Chuck Rice) : 4/11/2008 12:40:58 PM GMT
calculates these. See the comments for example calling sequence. The
commLink.cprintf(...) calls are calls to multiCallSerialDebug from the object
exchange. They are not needed by the object, but I use them for debugging.
Post Edited (Chuck Rice) : 4/11/2008 12:40:58 PM GMT
Comments
If you go to File>Archive>Project in the Propeller tool, it will produce a ZIP file which have your complete project to attach.
It is from my point of view the best way since the file will include everything needed to run.
No need to look for:
obj ''Requires the following objects from http://obex.parallax.com/
fp : "Float32Full" '' Requires 2 cogs
fs : "FloatString"
Format : "Format"
link : "MultiCogSerial" 'allocates 1 cog
G : "Globals"
Regards/Goran (Sweden)
Looks good! I've been moding /adding to the GPS programs as I find them and am planning to post the results too. Between you, Perry, MK and me , I think we have about enough for a general purpose GPS + navigation library! Nice job.
Paul