Class GpsRawMessage

All Implemented Interfaces:
Serializable, Cloneable, Comparable<AX25Message>, CommentedMessage

public class GpsRawMessage extends PositionMessage
This class represents a message decoded from a raw GPS NMEA data string (APRS protocol specification chapter 6).
See Also:
  • Constructor Details

    • GpsRawMessage

      public GpsRawMessage(byte[] body, int offset, String tp, long rcvTimestamp, AX25Callsign src, AX25Callsign dest)
      Create a GpsRawMessage from the bytes in a byte array (such as the body of an AX25Frame).
      Parameters:
      body - byte array containing the transmission format of the message
      offset - index into the array where the message starts
      tp - String of third-party routing information (or null if this was not routed over another network)
      rcvTimestamp - the time (in milliseconds in Jan 1970 UTC) when this message was received
      src - AX25Callsign of sending station
      dest - AX25Callsign of destination tocall
    • GpsRawMessage

      public GpsRawMessage(GpsFix fix, char symTableId, char symbolCode)
      Alternate constructor to support remote GPS tracking.
      Parameters:
      fix - GpsFix record to extract fix from
      symTableId - APRS symbol table ID or overlay for remote GPS
      symbolCode - APRS symbol code for remote GPS
    • GpsRawMessage

      public GpsRawMessage(String line, long timestamp, String callsign, String lat, String lon, int speed, int bearing, char symTableId, char symbolCode)
      Alternate constructor to support waypoint sentence backfeeds from Kenwood D7100/D710 GPS jack.
      Parameters:
      line - String of GPS sentence parsed apart to provide related parameters
      timestamp - timestamp in Java milliseconds since midnight Jan 1 1970 UTC
      callsign - callsign of reported station
      lat - latitude in APRS standard ddmm.mmN format
      lon - longitude in APRS standard dddmm.mmW format
      speed - speed in knots, or -1 if not provided
      bearing - bearing in degrees from true North
      symTableId - symbol table ID or overlay character
      symbolCode - symbol code character
  • Method Details

    • isSymbolInferred

      public boolean isSymbolInferred()
      Report whether the non-null APRS symbol reported by this message is explicit or inferred from destination or source callsign. Intended to be overridden by message types which can infer a symbol but can't explicitly specify the symbol.
      Overrides:
      isSymbolInferred in class Message
      Returns:
      boolean true if symbol is inferred