-
Notifications
You must be signed in to change notification settings - Fork 117
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
Produces decimal degrees that are incorrectly formatted. #27
Comments
ekspla
pushed a commit
to ekspla/micropyGPS
that referenced
this issue
Jan 18, 2023
Changes in dd location format.
ekspla
added a commit
to ekspla/micropyGPS
that referenced
this issue
Jan 22, 2023
Fix for issue inmcm#27
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code produces decimal degrees that are incorrectly formatted.
This can be seen in the init function definition:
The correct format for "dd" is +/-90° for latitude, and +/-180° for longitude, with no compass heading suffix. The compass heading is encoded into the sign of the number. (See here)
So in the example from the code would resolve to
+40.446
not40.446 N
.In the southern hemisphere, it would resolve to
-40.446
, not40.446 S
.The text was updated successfully, but these errors were encountered: