You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this a feature or a bug. It appears that gps.location.isValid() returns true even when the fix is lost for some time. Does it not reset if a fix is lost?
Using if (gps.location.isValid() && gps.location.age() < 2000) is my work around.
The text was updated successfully, but these errors were encountered:
@stilldavid is correct. isValid() simply means that the location information contains valid (though possibly stale) data. isValid() returns FALSE until the very first NMEA sentence with a fix is parsed. From then on it returns TRUE forever.
I'm not sure if this a feature or a bug. It appears that gps.location.isValid() returns true even when the fix is lost for some time. Does it not reset if a fix is lost?
Using
if (gps.location.isValid() && gps.location.age() < 2000)
is my work around.The text was updated successfully, but these errors were encountered: