-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with extracting the fix data using custom NMEA sentence extraction #114
Comments
Using GNGGA means you want GLONASS navigation. |
I never realised that I was using an older version - |
@classbproject I use the following code with good success to determine the fix and validity of my received data:
And then to check if the sentences are valid, I check the custom fix and validity values, as well as the number of satellites:
Cheers, |
This doesn't make sense to me, since it adds overhead to calculate a status which is already processed by TinyGPS. Simply check if To detect a fix TinyGPS does exactly the same as your code suggests:
I am using this approach: |
Thanks for your input. To give you some background, I previously had an issue with the validity check I was using where I would lose contact with my instruments for a month.
Somehow, data with incorrect dates were making it past the check and causing havoc with my real-time clock alarms. I spoke to Mikal directly about this and it turns out After that, I started doing things explicitly myself to ensure the validity check worked. I don't mind the redundancy. Cheers, |
isValid() means the data was seen by TinyGPS in a sentence with fix. It does not mean the sentence is not stale. Thus, you should combine this with checking the age of the sentence. That's all. See my example. |
Thanks for your feedback. Glad to have confirmation my code above is the correct (albeit redundant) approach. |
@adamgarbo My apologies for the delayed response. I got a chance to work on this again now. I saw your comment on another thread for the fix check.
|
I'm trying to extract the GPS Fix data using the custom NMEA sentence extraction but it does not seem to work.
The GPS fix data is present in the GNGGA sentence as the 6th element. In the code, I have,
and in the loop() function, I have,
Serial.print("Fix status: "); Serial.println(fixStatus.value());
However, I do not see
1
though the GPGGA sentence does show it,$GNGGA,125322.00,xxxx.xxxxx,X,xxxx.xxxxx,X,1,11,0.78,560.0,M,-68.1,M,,*68
The full code is here.
The text was updated successfully, but these errors were encountered: