Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 16:26 27 Apr 2024 Privacy Policy
Jump to

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.

Forum Index : Microcontroller and PC projects : Loops

Author Message
vk4tec

Senior Member

Joined: 24/03/2012
Location: Australia
Posts: 239
Posted: 06:10pm 10 Jul 2013
Copy link to clipboard 
Print this post

Hello

When I am dealing with GPS sometimes the data can not be there. Missing serial.

In that the GPS has gone away. - Failure mode

Can you only run one settick loop ?

I would like to have an independant loop that changes an LED based on the GPS stream is active or not.

Comments ?

As opposed to an LED on / off in the "wait for GPS data" loop.

- Andrew-
Andrew Rich VK4TEC
www.tech-software.net
 
cwilt
Senior Member

Joined: 20/03/2012
Location: United States
Posts: 147
Posted: 06:41pm 10 Jul 2013
Copy link to clipboard 
Print this post

You could base it off of the validation field in GPRMC sentence. Its the 2nd data field in the sentence. Use a global variable that resets to 0 when anything but an A is there. Have your settick loop check that variable.

That validation field is in other nema sentences too.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024