Shop OBEX P1 Docs P2 Docs Learn Events
Parallax GPS in /RAW Mode — Parallax Forums

Parallax GPS in /RAW Mode

HairyGHairyG Posts: 5
edited 2008-01-18 14:22 in BASIC Stamp
Dont think there has been a specific Raw GPS Code posted here so·i figured·id post mine.
so here it is.


~· HairyG

Comments

  • steve_bsteve_b Posts: 1,563
    edited 2008-01-18 13:08
    I remember trying something similar with my BS2 and it seemed to choke on all the waits....

    How often are you displaying a new string?
    If I recall, I would miss the odd fields which would get picked up on the next message....never sorted it out....using smart mode at the moment!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <FONT>Steve



    What's the best thing to do in a lightning storm? "take a one iron out the bag and hold it straight up above your head, even God cant hit a one iron!"
    Lee Travino after the second time being hit by lightning!
  • HairyGHairyG Posts: 5
    edited 2008-01-18 13:14
    Update for Altitude, Now it should return Correct altitude in Feet:

    ' // Display Altitude: Meters ( Feet )
    DEBUG MoveTo, 22, 5, DEC (Alt / 10), ".", DEC1 (Alt // 10), " Meters, "
    ' convert altitude from meters to feet
    workVal = (Alt * 3) + (Alt ** $47E5) ' 1 meter = 3.2808399 feet
    DEBUG " ( ", DEC workVal / 10, ".", DEC1 workval, " Feet ) "

    Thanks,
    ~ HairyG
  • HairyGHairyG Posts: 5
    edited 2008-01-18 13:19
    New string displays when GPGGA gets recieved by the gps {SERIN Sio, 188, [noparse][[/noparse]WAIT("GPGGA,")}. seems to be recieving at about 3-4 Hz. Have not tried recieving "ALL" NMEA strings from it as GGA has all the basic info you need.

    The trick to raw is in the sorting.

    H
  • steve_bsteve_b Posts: 1,563
    edited 2008-01-18 13:49
    Ya, I couldn't get the sorting to do what I wanted (at the time....can't remember what I wanted now! haha); so I went to Smart mode.

    Now, of course, I'm running slower, but am able to get all the things done, that I want.
    For instance, I want to serial out commands to the GPS, then serial in the response, then serial out the result to the SD logger and an LCD display.
    All those serials take up time...also, the SD logger seems to like some time in between data which slows things down. So I think I'm at about one complete cycle every 5seconds.

    I had tried to incorporate the compass module, but found things just got too slow so commented it out.

    My next change is to not serial out to the SD logger all the time and to try and use the EProm. Fill up the Eprom and then dump it to the logger.

    Then I want to try and port this to the SX....where I'll hopefully be able to put it back in to RAW mode so I can take advantage of the speed!
    Then on to the Propellor where I can get some real fun stuff happening!

    I had been using the GPS with my laptop to go geocaching....what a pain!! I had to hold the BOE/GPS on my head while balancing the laptop in the other hand (with cables) while the mrs ran and got the cache all the time!!

    I'll post a nice write-up when I'm done.

    Cheers

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <FONT>Steve



    What's the best thing to do in a lightning storm? "take a one iron out the bag and hold it straight up above your head, even God cant hit a one iron!"
    Lee Travino after the second time being hit by lightning!

    Post Edited (steve_b) : 1/18/2008 1:54:53 PM GMT
    640 x 480 - 77K
  • HairyGHairyG Posts: 5
    edited 2008-01-18 13:58
    Something i forgot in the sub... SPEED! haha well thats easy enough, just add this line under the first SERIN:

    SERIN Sio, 188, [noparse][[/noparse]WAIT("GPRMC,"), SKIP 30, DEC Speed]



    ever try the propstick? ITS LOADED! LOL
  • HairyGHairyG Posts: 5
    edited 2008-01-18 14:22
    Sorry for the multiple post, but here is the Updated Raw GPS.bs2
Sign In or Register to comment.