Skip to content

GPS Time Rollover at Month Start #3

@kian-vilhauer

Description

@kian-vilhauer

The ALLCPUCODE.ino file in the FALL2021CPUCODE repo currently has a function getGpsTime to convert the time from the gps module into a count of milliseconds useful for timing. The 'zero' time for this function is currently defined at the start of the current month at midnight. This could conceivably cause a timing issue if the balloon is mid-flight at midnight on the first of a month, as the millisecond counter would reset to zero. (Unlikely, but, hey, Murphy's Law).

Suggested fix: Rework the function to use a set date in the past as the zero time, or begin counting when the balloon is launched, in such a way that a rollover issue couldn't reasonably occur.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions