PDA

View Full Version : ICCV7 GPS Object V2



TJHJ
03-31-2009, 11:52 PM
Hey all,

Here is a GPS object in C for use with the ICCV7.

There are two versions one that uses defines and one that does not for compatibility reasons.

I tried to over comment this so it can be used as a reference.

I have tested it with the parallax GPS unit. Although it should work with any GPS unit that outputs NEMA Strings.

For use with the Parallax GPS unit connect /raw to ground. It parses the standard strings and does not use the "Smart Mode". The reason is the smart mode adds a long delay while the on board Sx chip parses the string for the correct data. Using the constant string parsing system, the data update rate is much faster and return of data does not cause additional delay in the main program when requested.

Any suggestions or problems please let me know by PM.

EDIT : V2 is now been updated for compatablity and more standard C style functions. This version should not have peoblems with other objects. See Demo File for how it is called and works.

TJ

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I owe everyone here a bunch, So thanks again for answering my dumb questions.
Projects. RG500 ECU system. PropCopter. Prop CanSat. Prop Paste Gun.
Suzuki RG500 in a RGV 250 frame.
Bimota V-Due (Running on the fuel injection system)
Aprilia RS250

Post Edited (TJHJ) : 4/11/2009 6:34:06 PM GMT

jazzed
04-01-2009, 02:02 AM
Hi TJ.

Thanks for writing GPS code. I have a GPS module, but it sits on my desk mostly :)

Standard C libraries are normally split between .c and .h files ... it would be good if your code followed the practice.
The .h files normally contain #define macros, typedefs, and function declarations among other things.
The .c files normally have function implementations and variables.

Also a .h file will normally have a #define wrapper to allow many .c files include it. Without the
wrapper, most compilers will fail to build if the header is included more than once. For example:
/* example.h header file */
#ifndef __EXAMPLE_H_
#define __EXAMPLE_H_
/* header content goes here */
#endif
/* #endif __EXAMPLE_H_ */

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve


Propalyzer: Propeller PC Logic Analyzer (http://www.brouhaha.com/~sdenson/Propalyzer)
http://forums.parallax.com/showthread.php?p=788230 (http://forums.parallax.com/showthread.php?p=788230)

TJHJ
04-07-2009, 06:41 AM
Opps I just saw this today. Ill get right on fixing it and the other objects I have up.
Sorry

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I owe everyone here a bunch, So thanks again for answering my dumb questions.
Projects. RG500 ECU system. PropCopter. Prop CanSat. Prop Paste Gun.
Suzuki RG500 in a RGV 250 frame.
Bimota V-Due (Running on the fuel injection system)
Aprilia RS250

ImageCraft
04-07-2009, 06:46 AM
Thank you! Keep those C objects coming http://forums.parallax.com/images/smilies/smile.gif

TJHJ
04-12-2009, 02:18 AM
V2 Is now current. I think that all the "Standard" compatablity problems should be worked out now. Also cleaned up the routine it reads the old data in the unit with a non valid signal lock correctly in all fields.



TJ

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I owe everyone here a bunch, So thanks again for answering my dumb questions.
Projects. RG500 ECU system. PropCopter. Prop CanSat. Prop Paste Gun.
Suzuki RG500 in a RGV 250 frame.
Bimota V-Due (Running on the fuel injection system)
Aprilia RS250

jazzed
04-12-2009, 04:06 AM
Nice work TJ

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve


Propalyzer: Propeller PC Logic Analyzer (http://www.brouhaha.com/~sdenson/Propalyzer)
http://forums.parallax.com/showthread.php?p=788230 (http://forums.parallax.com/showthread.php?p=788230)