Shop OBEX P1 Docs P2 Docs Learn Events
ICCV7 GPS Object V2 — Parallax Forums

ICCV7 GPS Object V2

TJHJTJHJ Posts: 243
edited 2009-04-11 20:06 in Propeller 1
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

Comments

  • jazzedjazzed Posts: 11,803
    edited 2009-03-31 18:02
    Hi TJ.

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

    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://forums.parallax.com/showthread.php?p=788230
  • TJHJTJHJ Posts: 243
    edited 2009-04-06 22:41
    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
  • ImageCraftImageCraft Posts: 348
    edited 2009-04-06 22:46
    Thank you! Keep those C objects coming smile.gif
  • TJHJTJHJ Posts: 243
    edited 2009-04-11 18:18
    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
  • jazzedjazzed Posts: 11,803
    edited 2009-04-11 20:06
    Nice work TJ

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


    Propalyzer: Propeller PC Logic Analyzer
    http://forums.parallax.com/showthread.php?p=788230
Sign In or Register to comment.