Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
Have loaded mmbasic to my pico with no problems and it is displaying the output from an em406 GPS. How do I correct for local time? I did read what I needed to do a couple of days ago but for the life of me I can't recall the instructions!
phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2832
Posted: 03:43am 08 Feb 2022
Copy link to clipboard
Print this post
Manual P107 OPEN comspec$ AS GPS [,timezone_offset] [,monitor] Will open a serial communications port for reading from a GPS receiver. See the GPS function for details. The sentences interpreted are GPRMC, GNRMC, GPCGA and GNCGA. The timezone_offset parameter is used to convert UTC as received from the GPS to the local timezone. If omitted the timezone will default to UTC. The timezone_offset can be a any number between -12 and 14 allowing the time to be set correctly even for the Chatham Islands in New Zealand (UTC +12:45). If the monitor parameter is set to 1 then all GPS input is directed to the console. This can be stopped by closing the GPS channel.
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 2006
Posted: 03:46am 08 Feb 2022
Copy link to clipboard
Print this post
When you open the COM port you add another parameter From the manual
Beat me to it.. Edited 2022-02-08 13:48 by palcal"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
Thankyou phil99 and palcal, timezone_offset added and now have the correct time in Merbein!
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 2006
Posted: 07:56am 08 Feb 2022
Copy link to clipboard
Print this post
Been to Merbein a lovely town in a great part of Australia but too cold for me."It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"