Closed ad1k4h closed 1 year ago
Altitude and satellites come from the $GPGGA sentence, while the others are available in $GPRMC. Best guess? Either your device has been configured to disable $GPGGA sentences, or you are calling startGPS() before the first $GPGGA sentence has been retrieved.
Are you calling startGPS repeatedly? If so, you should try temporarily removing the Serial.print(F("Searching for Satellites...")); line, because it may be introducing delays that cause serial overflow.
Last thing to try… change
if (gps.location.isValid())
to
if (gps.location.isValid() && gps.satellites.isValid())
Good luck!
M
Changing to this:
if (gps.location.isValid() && gps.satellites.isValid())
Solved the issue. Thank you so much, and sorry for the issue. May thanks! <3
Changing to this:
if (gps.location.isValid() && gps.satellites.isValid())
Solved the issue. Thank you so much, and sorry for the issue. May thanks! <3
Excellent!
I have this function. This needs to be populate the values to global function:
I getting latitude, longitude and speed, but altitude and satellites are empty. Am i trying it good or its a bug?