Package org.ka2ddo.aprs
Class GpsRawMessage
java.lang.Object
org.ka2ddo.ax25.AX25Message
org.ka2ddo.aprs.Message
org.ka2ddo.aprs.PositionMessage
org.ka2ddo.aprs.GpsRawMessage
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<AX25Message>
,CommentedMessage
This class represents a message decoded from a raw GPS NMEA data string (APRS protocol specification chapter 6).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ka2ddo.ax25.AX25Message
AX25Message.Precedence
-
Field Summary
Fields inherited from class org.ka2ddo.aprs.PositionMessage
abc, altitude, altitudeUnit, COMPRESSED_LAT_SCALING, CONV_MPH_TO_METERS_PER_SEC, DHM, enabledForTransmit, fLatitude, fLatPrecision, fLongitude, fmtMonitorFreq, HMS, HUNDREDTH_MINUTE_F, isCustom, latitude, LN_BASE1_08, longitude, ONE_DEGREE_F, ONE_MINUTE_F, TEN_MINUTES_F, TENTH_MINUTE_F
Fields inherited from class org.ka2ddo.aprs.Message
appendCR, APRS_AND_OPENTRAC_AND_RAW, APRS_AND_RAW, comment, msgType, S_PERMANENT, S_PERMANENT_UC, symbolCode, symTableId
Fields inherited from class org.ka2ddo.ax25.AX25Message
APRS_AND_OPENTRAC, ax25Frame, extensions, invalid, originatingCallsign, originatingDest, PERMANENT, rcptTime, thirdParty, timestamp, UTC
-
Constructor Summary
ConstructorDescriptionGpsRawMessage
(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).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.GpsRawMessage
(GpsFix fix, char symTableId, char symbolCode) Alternate constructor to support remote GPS tracking. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Report whether the non-null APRS symbol reported by this message is explicit or inferred from destination or source callsign.Methods inherited from class org.ka2ddo.aprs.PositionMessage
appendAreaParameters, appendRepeaterParameters, appendSignpostParameters, bodyEquals, createObjectFromThisPosition, decodeDataExtension, decodeLatitude, decodeLongitude, decodeOnlyLatitude, decodeOnlyLongitude, encodeLatitudeCompressed, encodeLatitudePlainText, encodeLongitudeCompressed, encodeLongitudePlainText, extractCompressedLatitude, extractCompressedLongitude, extractLatitude, extractLongitude, getAbc, getAltitude, getAltitudeUnit, getLatitude, getLatitudeAccuracy, getLongitude, hasPosition, isCustom, isEnabled, isShowDate, isUsingCompressedFormat, looksLikeFrequency, looksLikeFrequency, paramString, setAbc, setAmbiguity, setCustom, setLatitude, setLocation, setLongitude, setShowDate, testIfValidCompressedLocation
Methods inherited from class org.ka2ddo.aprs.Message
compareTo, decodeDatestamp, decodeHurricaneParams, decodeTimestamp, decodeWeatherParams, decodeWeatherParams, dup, encodeTimestamp, extractComment, extractComment, extractSymbol, formatBody, getComment, getExtensionString, getMsgType, getPrecedence, getProtocols, getSymbolCode, getSymTableId, hasWeather, inferSymbol, isAppendCR, looksLikeLongFormatLatitude, setAppendCR, setComment, setSymbolCode, setSymTableId, toString
Methods inherited from class org.ka2ddo.ax25.AX25Message
equals, extractSource, getAx25Frame, getExtension, getFirstDigipeat, getLastDigipeat, getNthDigipeat, getOriginalDestination, getOriginalSource, getOriginatingCallsign, getOriginatingDest, getRcptTime, getReadOnlyExtensionMap, getTimestamp, hashCode, hasThisFirstDigi, indexOf, indexOf, isDirect, isInvalid, isRf, onlyDigits, onlyDigits, onlyDigitsOrMinus, onlyDigitsOrPeriod, onlyDigitsOrSpace, onlyDigitsPlus, onlyPeriods, setAx25Frame, setInvalid, setOriginatingCallsign, setRcptTime, setTimestamp, split, storeExtension
-
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 messageoffset
- index into the array where the message startstp
- 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 receivedsrc
- AX25Callsign of sending stationdest
- AX25Callsign of destination tocall
-
GpsRawMessage
Alternate constructor to support remote GPS tracking.- Parameters:
fix
- GpsFix record to extract fix fromsymTableId
- APRS symbol table ID or overlay for remote GPSsymbolCode
- 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 parameterstimestamp
- timestamp in Java milliseconds since midnight Jan 1 1970 UTCcallsign
- callsign of reported stationlat
- latitude in APRS standard ddmm.mmN formatlon
- longitude in APRS standard dddmm.mmW formatspeed
- speed in knots, or -1 if not providedbearing
- bearing in degrees from true NorthsymTableId
- symbol table ID or overlay charactersymbolCode
- 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 classMessage
- Returns:
- boolean true if symbol is inferred
-