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

Parse out 0.1 seconds from GGA and RMC sentences. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kython89
Copy link

No description provided.

Copy link
Contributor

@Roboterbastler Roboterbastler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Kython89,
currently we unfortunately don't have a setup to test this. Did you test it?

@@ -71,11 +71,12 @@ def convert_time(nmea_utc):
hours = int(nmea_utc[0:2])
minutes = int(nmea_utc[2:4])
seconds = int(nmea_utc[4:6])
seconds_tenths = float(nmea_utc[6:8]) if '.' in nmea_utc else 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why take only tenths and not the full 2 digits of the fraction of a second?

E.g. with

        seconds_tenths = float(nmea_utc[6:]) if '.' in nmea_utc else 0

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

Successfully merging this pull request may close these issues.

2 participants