Skip to content
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

gpsFix does not work correctly. #27

Open
jasonwray opened this issue Apr 9, 2017 · 1 comment
Open

gpsFix does not work correctly. #27

jasonwray opened this issue Apr 9, 2017 · 1 comment

Comments

@jasonwray
Copy link

gpsFix will return true as long as a fix was established once.

Current code as of v.10:
bool AssetTracker::gpsFix() { if ((gps.latitude == 0.0) || (gps.longitude == 0.0)){ return false; } else { return true; }

If a fix is lost, gps.latitude and gps.longitude return their previous values, so this logic will only ever work upon powerup.

@jasonwray
Copy link
Author

It is worth noting that getFixQuality does work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant