Package GPS

Class ProcessNmeaData

All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class ProcessNmeaData extends PamProcess
Author:
Doug Gillespie PamProcess that subscribed to the AcquireNmeaData processes output data block, selects just the interesting stuff in the GPRMC string and creates a new data block with the string data unpacked into more usable doubles.
  • Method Details

    • firstRequiredTime

      public long firstRequiredTime(PamObservable o, Object arg)
    • notifyModelChanged

      public void notifyModelChanged(int changeType)
      Overrides:
      notifyModelChanged in class PamProcess
    • noteNewSettings

      public void noteNewSettings()
      Specified by:
      noteNewSettings in interface PamObserver
      Overrides:
      noteNewSettings in class PamProcess
    • newData

      public void newData(PamObservable o, PamDataUnit pamData)
      Overrides:
      newData in class PamProcess
    • setSampleRate

      public void setSampleRate(float sampleRate, boolean notify)
      Description copied from interface: PamObserver
      New sample rate
      Specified by:
      setSampleRate in interface PamObserver
      Overrides:
      setSampleRate in class PamProcess
      Parameters:
      notify - Notify other PamObservers and PamObservables in the chain.
    • pamStart

      public void pamStart()
      Description copied from class: PamProcess
      Called for each process to tell it to start (may not be necessary for processes which are listening for data anyway).
      Specified by:
      pamStart in class PamProcess
    • pamStop

      public void pamStop()
      Description copied from class: PamProcess
      Stops the process.
      Specified by:
      pamStop in class PamProcess
    • clearOldData

      public void clearOldData()
      Description copied from class: PamProcess
      Clears all data from all output data blocks of this process.
      This gets called from the main controller at the start of operations. Can be overridden in some classes which don't want to delete existing data or they can set the clearAtStart flag in any data block.
      Overrides:
      clearOldData in class PamProcess
    • getGpsController

      public GPSControl getGpsController()
    • getGpsDataBlock

      public GPSDataBlock getGpsDataBlock()
    • getGpsLogger

      public GpsLogger getGpsLogger()