Package GPS

Class GPSClockUpdater

java.lang.Object
GPS.GPSClockUpdater

public class GPSClockUpdater extends Object
Functions for PC clock updates from GPS. Separated out from UpdateClockDialog so that's it's easier to run stand alone in -nogui operation, and just to make neater and cleaner code.
  • Constructor Details

  • Method Details

    • newGPSData

      public long newGPSData(GpsDataUnit gpsDataUnit)
      Receive GPS data. Unpack it and see if there is a reasonable time.
      Parameters:
      nmeaDataUnit -
    • addObserver

      public void addObserver(ClockUpdateObserver updateObserver)
      Add an observer of clock updates
      Parameters:
      updateObserver -
    • removeObserver

      public boolean removeObserver(ClockUpdateObserver updateObserver)
      Remove a clock update observer.
      Parameters:
      updateObserver -
      Returns:
    • updateOnNext

      public void updateOnNext()
      Tell it to update on the next reasonable NMEA time string.