Skip to content

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?

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