Shop OBEX P1 Docs P2 Docs Learn Events
GPS Time — Parallax Forums

GPS Time

JensenJensen Posts: 1
edited 2009-07-30 23:54 in Propeller 1
When I use the GPS, I receive the wrong info for time. It states that my local time is 01:16:01 but my local time is GMT+8 6pm. I would like to know how can I change the time to be the same as my local time GMT+8 , perhaps by changing the code. Please help me as I am doing my project.

With best regards

Comments

  • Erik FriesenErik Friesen Posts: 1,071
    edited 2009-07-30 11:22
    Gps time is always greenwich time. You have to figure out how to adjust for your location.
  • JonathanJonathan Posts: 1,023
    edited 2009-07-30 15:12
    Also depends on which GPS you are using. Some of them have a variable that can be set to offset from GMT. Most Motorolas can do that for example. If yours doens't have that, you can write a short bit of code to do the job. Somewehere I have such a snip, if you can't get it going send me an email and I'll dig it up.

    Jonathan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-07-30 23:54
    TO understand the GPS output better you can review the following:

    en.wikipedia.org/wiki/Global_Positioning_System
    www.gpsinformation.org/dale/nmea.htm

    The time that the GPS is spitting will need to be massaged to match your location.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
Sign In or Register to comment.