This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Wednesday, April 30, 2008

[oopic] Re: algorithm for GPS waypoints

--- In oopic@yahoogroups.com, kevsl294@... wrote:
>
> Dear OOpic Group,
>
> I am trying to program an OOpic-R to navigate by use of a
total robotics DS-GPM-GPS module. I currently have all of my
waypoints. I am basically trying to get our vehicle to navigate from
one point to another and back. I have measured the distances between
the two points as well. My problem is that I am having trouble
writing code to perform this task and I only have a few days to do so.
I have tried looking online for sample code, but most people are
using basic stamps or are using garmin gps units were you just type in
your waypoints and the module automatically computes everything for you.
>
> I would really appreciate anyone's help! Also thanks for your help
up to this point with my other questions!
>
> Thank you,
>
> Kev1814
>

The manufacturer has some code here:
http://www.designergeneric.co.uk/designer/DS-GPM_Disk.zip

It does not include information on navigation. It also appears that
the GPS itself doesn't deal with waypoints or course-to-steer. That
means you have to determine course and this requires some kind of
calculation. It would be nice to have an arc-tangent function but,
alas, it isn't available. Doing it with integer-only arithmetic will
be a challenge.

Too bad you are so short of time. You could add a floating point
coprocessor to do the calculations:
http://www.sparkfun.com/commerce/product_info.php?products_id=8129

You could always try the old fashioned way to navigate known as
'easting' (or 'westing', I suppose). Before it was possible to
measure longitude at sea (before the chronometer), vessels would sail
due north/south until they were at the proper latitude and then sail
due east/west until they reached their destination. Of course there
could be some variations but as they approached their destination (in
terms of days to sail), they had to be at the proper latitude.

Knowing that vessels had to be at the proper latitude to make a
desired landfall made the job of pirates a lot easier. They just
sailed out on the parallel of latitude and waited.

Richard

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments: