We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 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; }
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.
The text was updated successfully, but these errors were encountered:
It is worth noting that getFixQuality does work as expected.
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: