Bill374 / 2000-sail-polars

NMEA2000 message logging and sailing performance analysis
GNU General Public License v3.0
0 stars 0 forks source link

Implement nmea.get_gps_time() #5

Open Bill374 opened 3 years ago

Bill374 commented 3 years ago
def get_gps_time(can0, wait=100):
    """
    Return the current GPS time from the NMEA network.

    If no GPS time message is heard on the network after a specified number of
    seconds an exception is thrown.

    Parameters
    ----------
    can0 : can.BusABC
    wait : int, optional
        The number of seconds to wait for a GPS time message before giving up
        and throwing an exception. The default is 100.

    Returns
    -------
    datetime.

    """

What is the GPS time message ID?

Bill374 commented 3 years ago

Candidate PGNs