|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.util.Nmea0183
public class Nmea0183
A container for a NMEA-0183 record
Field Summary | |
---|---|
protected double |
altitudeM
|
static java.lang.String |
CUSTOM_GT_
|
protected long |
ddmmyy
|
static java.lang.String |
DNAME_GPGGA
|
static java.lang.String |
DNAME_GPRMC
|
static java.lang.String |
DNAME_GPVTG
|
static java.lang.String |
DNAME_GPZDA
|
static java.lang.String |
DNAME_GTEVT
|
static java.lang.String |
DNAME_GTSTC
|
static java.lang.String |
DNAME_GTUID
|
protected java.lang.Object |
eventCode
|
protected java.lang.String[] |
extraData
|
protected static long |
FIELD_ALTITUDE
|
protected static long |
FIELD_DDMMYY
|
protected static long |
FIELD_EVENT_CODE
|
protected static long |
FIELD_FIX_TYPE
|
protected static long |
FIELD_GPS_AGE
|
protected static long |
FIELD_HDOP
|
protected static long |
FIELD_HEADING
|
protected static long |
FIELD_HHMMSS
|
protected static long |
FIELD_LATITUDE
|
protected static long |
FIELD_LONGITUDE
|
protected static long |
FIELD_MAG_VARIATION
|
protected static long |
FIELD_MOBILE_ID
|
protected static long |
FIELD_NUMBER_SATS
|
protected static long |
FIELD_RECORD_TYPE
|
protected static long |
FIELD_RECORD_VERSION
|
protected static long |
FIELD_SPEED
|
protected static long |
FIELD_STATUS_CODE
|
protected static long |
FIELD_VALID_FIX
|
protected long |
fieldMask
|
protected long |
fixtime
|
protected int |
fixType
|
protected GeoPoint |
geoPoint
|
protected long |
gpsAge
|
protected double |
hdop
|
protected double |
heading
|
protected long |
hhmmss
|
protected boolean |
ignoredInvalidGPS
|
protected boolean |
ignoreGpsFlag
|
protected boolean |
isValidGPS
|
static double |
KILOMETERS_PER_KNOT
|
static double |
KNOTS_PER_KILOMETER
|
protected java.lang.String |
lastRcdType
|
protected double |
latitude
|
protected double |
longitude
|
protected double |
magVariation
|
protected java.lang.String |
mobileID
|
static java.lang.String |
NAME_GPGGA
|
static java.lang.String |
NAME_GPRMC
|
static java.lang.String |
NAME_GPVTG
|
static java.lang.String |
NAME_GPZDA
|
static java.lang.String |
NAME_GTEVT
|
static java.lang.String |
NAME_GTSTC
|
static java.lang.String |
NAME_GTUID
|
static java.lang.String |
NAME_NONE
|
static java.lang.String |
NMEA_GP_
|
protected int |
numSats
|
protected long |
parsedRcdTypes
|
protected java.lang.String |
rcdVersion
|
protected double |
speedKnots
|
static int |
STATUS_CODE_MASK
|
static int |
STATUS_NONE
|
protected int |
statusCode
|
static long |
TYPE_CUSTOM_1
|
static long |
TYPE_CUSTOM_2
|
static long |
TYPE_CUSTOM_3
|
static long |
TYPE_CUSTOM_4
|
static long |
TYPE_CUSTOM_5
|
static long |
TYPE_CUSTOM_6
|
static long |
TYPE_CUSTOM_7
|
static long |
TYPE_CUSTOM_8
|
static long |
TYPE_GPGGA
|
static long |
TYPE_GPRMC
|
static long |
TYPE_GPVTG
|
static long |
TYPE_GPZDA
|
static long |
TYPE_GTEVT
|
static long |
TYPE_GTSTC
|
static long |
TYPE_GTUID
|
static long |
TYPE_NONE
|
protected boolean |
validChecksum
|
static java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
Nmea0183()
Constructor |
|
Nmea0183(java.lang.String rcd)
Constructor |
|
Nmea0183(java.lang.String[] rcds)
Constructor |
|
Nmea0183(java.lang.String[] rcds,
boolean ignoreChecksum)
Constructor |
|
Nmea0183(java.lang.String rcd,
boolean ignoreChecksum)
Constructor |
Method Summary | |
---|---|
protected int |
_getStatusCode()
Gets the status-code |
protected static long |
_getUTCSeconds(long dmy,
long hms)
Computes seconds in UTC time given values from GPS device. |
protected boolean |
_hasValidChecksum(java.lang.String str)
Checks if NMEA-0183 formatted String has valid checksum by calculating the checksum of the payload and comparing that to the received checksum. |
protected boolean |
_parse_GPGGA(java.lang.String[] fld)
Parses "$GPGGA" |
protected boolean |
_parse_GPRMC(java.lang.String[] fld)
Parses "$GPRMC" |
protected boolean |
_parse_GPVTG(java.lang.String[] fld)
Parses "$GPVTG" (speed/heading) |
protected boolean |
_parse_GPZDA(java.lang.String[] fld)
Parses "$GPZDA" |
protected boolean |
_parse_GTEVT(java.lang.String[] fld)
Parses "$GTEVT" (Event Record) |
protected boolean |
_parse_GTSTC(java.lang.String[] fld)
Parses "$GTSTC" (Status Code) |
protected boolean |
_parse_GTUID(java.lang.String[] fld)
Parses "$GTUID" (Unique-ID) |
protected boolean |
_parseValidGPSIndicator(java.lang.String AV)
Parse valid GPS indicator "A"/"V" |
protected void |
appendCustomTypes(java.lang.StringBuffer sb,
java.lang.String sep)
Callback to append any contained custom record types to the specified StringBuffer |
static int |
calcXORChecksum(java.lang.String str,
boolean includeAll)
Calculates/Returns the checksum for a NMEA-0183 formatted String |
void |
clearFieldMask(long fld)
|
boolean |
didIgnoreInvalidGPS()
Returns true if ignoring invalid GPS flags, and the flag indicator was not "A" |
double |
getAltitudeMeters()
Gets the altitude in meters |
static long |
getCurrentHHMMSS(java.util.TimeZone tz)
Returns the current HHMMSS |
long |
getDDMMYY()
Gets the day/month/year of the fix |
java.lang.Object |
getEventCode()
Gets the event-code |
java.lang.String[] |
getExtraData()
Gets any data that may follow the checksum |
long |
getFieldMask()
Gets the mask of available fields |
long |
getFixtime()
Gets the epoch fix time |
long |
getFixtime(boolean dftToCurrentTOD)
Gets the epoch fix time |
int |
getFixType()
Gets the "$GPGGA" fix type (0=no fix, 1=GPS, 2=DGPS, 3=PPS?, 6=dead-reckoning) |
GeoPoint |
getGeoPoint()
Gets the lat/lon as a GeoPoint |
long |
getGpsAge()
Gets the GPS age in seconds |
double |
getHDOP()
Gets the horizontal-dilution-of-precision |
double |
getHeading()
Gets the heading/course in degrees |
long |
getHHMMSS()
Gets the hour/minute/seconds of the fix |
boolean |
getIgnoreInvalidGpsFlag()
gets whether the A|V (valid|invalid) GPS location flag should be ignored. |
java.lang.String |
getLastRecordType()
Gets the last record type |
double |
getLatitude()
Gets the latitude |
double |
getLongitude()
Gets the longitude |
double |
getMagneticVariation()
Gets the magnetic variation in degrees |
java.lang.String |
getMobileID()
Gets the mobile-id |
int |
getNumberOfSatellites()
Gets the number of satellites used in fix |
protected long |
getParsedRecordTypes()
Gets all parsed record types (mask) |
java.lang.String |
getRecordVersion()
Gets the record version |
double |
getSpeedKnots()
Returns the speed in knots |
double |
getSpeedKPH()
Gets the speed in KPH |
int |
getStatusCode()
Gets the status-code |
java.lang.String |
getTypeNames()
Gets the record type String from the type mask |
boolean |
hasAltitude()
Returns true if the altitude has been defined |
boolean |
hasEventCode()
Returns true if an event-code has been defined |
boolean |
hasExtraData()
Returns true if extra-data was found |
boolean |
hasField(long fld)
Returns true if specified field is available |
boolean |
hasFixtime()
Returns true if the fixtime has been defined |
boolean |
hasFixType()
Returns true if the fix type has been defined |
boolean |
hasGeoPoint()
Returns true if the latitude/longitude have been defined |
boolean |
hasGPGGA()
Returns true if a $GPGGA record has been parsed |
boolean |
hasGPRMC()
Returns true if a $GPRMC record has been parsed |
boolean |
hasGpsAge()
Returns true if the GPS age has been defined |
boolean |
hasGPVTG()
Returns true if a $GPVTG record has been parsed |
boolean |
hasGPZDA()
Returns true if a $GPZDA record has been parsed |
boolean |
hasGTEVT()
Returns true if a $GTEVT record has been parsed |
boolean |
hasGTSTC()
Returns true if a $GTSTC record has been parsed |
boolean |
hasGTUID()
Returns true if a $GTUID record has been parsed |
boolean |
hasHDOP()
Returns true if the HDOP has been defined |
boolean |
hasHeading()
Returns true if the heading has been defined |
boolean |
hasLatitude()
Returns true if the latitude has been defined |
boolean |
hasLongitude()
Returns true if the longitude has been defined |
boolean |
hasMagneticVariation()
Returns true if the magnetic variation has been defined |
boolean |
hasMobileID()
Returns true if a mobile-id is defined |
boolean |
hasNumberOfSatellites()
Returns true if the number of satellites has been defined |
boolean |
hasParsedRecordTypes()
Returns true if this instance has at least one parsed record type |
boolean |
hasRecordVersion()
Returns true if the record version has been defined |
boolean |
hasSpeed()
Returns true if the speed has been defined |
boolean |
hasStatusCode()
Returns true if the status-code has been defined |
boolean |
isEventCode(java.lang.Object ec)
Returns true if the specified event code is non-null/blank |
boolean |
isValidChecksum()
Returns true if the checksum is valid |
boolean |
isValidGPS()
Returns true if the GPS fix is valid |
static void |
main(java.lang.String[] argv)
Main entry point for testing/debugging |
boolean |
parse(java.lang.String rcd)
Parses a NMEA-0183 record |
boolean |
parse(java.lang.String[] rcds)
Parses a NMEA-0183 record |
boolean |
parse(java.lang.String[] rcds,
boolean ignoreChecksum)
Parses an array of NMEA-0183 records |
boolean |
parse(java.lang.String rcd,
boolean ignoreChecksum)
Parses a NMEA-0183 record |
protected boolean |
parseCustomReord(java.lang.String[] fld)
Callback to parse custom record type |
static long |
parseFixtime(long ddmmyy,
long hhmmss,
boolean dftToCurrentTOD)
Returns the parsed epoch fix time |
static long |
parseFixtime(java.lang.String DDMMYY,
java.lang.String HHMMSS,
boolean dftToCurrentTOD)
Returns the parsed epoch fix time |
static double |
ParseLatitude(java.lang.String sd)
Parses latitude given values from GPS device. |
static double |
ParseLatitude(java.lang.String sd,
double dft)
Parses latitude given values from GPS device. |
static double |
ParseLatitude(java.lang.String s,
java.lang.String d)
Parses latitude given values from GPS device. |
static double |
ParseLatitude(java.lang.String s,
java.lang.String d,
double dft)
Parses latitude given values from GPS device. |
static double |
ParseLongitude(java.lang.String sd)
Parses longitude given values from GPS device. |
static double |
ParseLongitude(java.lang.String sd,
double dft)
Parses longitude given values from GPS device. |
static double |
ParseLongitude(java.lang.String s,
java.lang.String d)
Parses longitude given values from GPS device. |
static double |
ParseLongitude(java.lang.String s,
java.lang.String d,
double dft)
Parses longitude given values from GPS device. |
void |
setAltitudeMeters(double alt)
Sets the magnetic variation in degrees |
void |
setDDMMYY(long ddmmyy)
Sets the day/month/year |
void |
setEventCode(java.lang.Object ec)
Sets the event-code |
void |
setFieldMask(long fld)
|
void |
setFixType(int ft)
Sets the fix type |
void |
setGeoPoint(double lat,
double lon)
Sets the lat/lon as a GeoPoint |
void |
setGeoPoint(GeoPoint gp)
Sets the lat/lon as a GeoPoint |
void |
setGpsAge(long age)
Sets the GPS age |
void |
setHDOP(double dop)
Sets the HDOP value |
void |
setHeading(double dir)
Sets the heading value, in degrees |
void |
setHHMMSS(long hhmmss)
Sets the hours/minutes/seconds |
void |
setIgnoreInvalidGpsFlag(boolean ignore)
Sets whether the A|V (valid|invalid) GPS location flag should be ignored. Setting to "true" is not recommended as invalid GPS locations may be returned. |
void |
setMagneticVariation(double mv)
Sets the magnetic variation in degrees |
void |
setMobileID(java.lang.String id)
Sets the mobile-id |
void |
setNumberOfSatellites(int sats)
Sets the number of satellites in view |
protected void |
setParsedRecordType(long type,
java.lang.String typeS)
Adds the parsed record types (mask) |
void |
setRecordVersion(java.lang.String vers)
Sets the record version |
void |
setSpeedKnots(double knots)
Sets the speed value, in Knots |
void |
setSpeedKPH(double kph)
Sets the speed value, in km/h |
void |
setStatusCode(int sc)
Sets the status-code |
java.lang.String |
toGPRMC()
Return a formatted $GPRMC record from the values in this instance |
java.lang.String |
toString()
Returns a string representation of this object |
java.lang.StringBuffer |
toStringBuffer(java.lang.StringBuffer sb)
Returns a string representation of this object |
int |
translateEventCodeToStatusCode(java.util.Map<java.lang.Object,java.lang.Integer> evCodeMap)
Translates the event-code to status-code, using the specified map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSION
public static final java.lang.String NMEA_GP_
public static final java.lang.String CUSTOM_GT_
public static final java.lang.String NAME_NONE
public static final java.lang.String NAME_GPRMC
public static final java.lang.String NAME_GPGGA
public static final java.lang.String NAME_GPVTG
public static final java.lang.String NAME_GPZDA
public static final java.lang.String NAME_GTUID
public static final java.lang.String NAME_GTSTC
public static final java.lang.String NAME_GTEVT
public static final java.lang.String DNAME_GPRMC
public static final java.lang.String DNAME_GPGGA
public static final java.lang.String DNAME_GPVTG
public static final java.lang.String DNAME_GPZDA
public static final java.lang.String DNAME_GTUID
public static final java.lang.String DNAME_GTSTC
public static final java.lang.String DNAME_GTEVT
public static final long TYPE_NONE
public static final long TYPE_GPRMC
public static final long TYPE_GPGGA
public static final long TYPE_GPVTG
public static final long TYPE_GPZDA
public static final long TYPE_GTUID
public static final long TYPE_GTSTC
public static final long TYPE_GTEVT
public static final long TYPE_CUSTOM_1
public static final long TYPE_CUSTOM_2
public static final long TYPE_CUSTOM_3
public static final long TYPE_CUSTOM_4
public static final long TYPE_CUSTOM_5
public static final long TYPE_CUSTOM_6
public static final long TYPE_CUSTOM_7
public static final long TYPE_CUSTOM_8
protected static final long FIELD_RECORD_TYPE
protected static final long FIELD_VALID_FIX
protected static final long FIELD_DDMMYY
protected static final long FIELD_HHMMSS
protected static final long FIELD_LATITUDE
protected static final long FIELD_LONGITUDE
protected static final long FIELD_SPEED
protected static final long FIELD_HEADING
protected static final long FIELD_HDOP
protected static final long FIELD_NUMBER_SATS
protected static final long FIELD_ALTITUDE
protected static final long FIELD_FIX_TYPE
protected static final long FIELD_MAG_VARIATION
protected static final long FIELD_RECORD_VERSION
protected static final long FIELD_MOBILE_ID
protected static final long FIELD_EVENT_CODE
protected static final long FIELD_STATUS_CODE
protected static final long FIELD_GPS_AGE
public static final double KILOMETERS_PER_KNOT
public static final double KNOTS_PER_KILOMETER
public static final int STATUS_NONE
public static final int STATUS_CODE_MASK
protected boolean validChecksum
protected long parsedRcdTypes
protected java.lang.String lastRcdType
protected long fieldMask
protected long ddmmyy
protected long hhmmss
protected long fixtime
protected boolean ignoreGpsFlag
protected boolean ignoredInvalidGPS
protected boolean isValidGPS
protected double latitude
protected double longitude
protected GeoPoint geoPoint
protected double speedKnots
protected double heading
protected long gpsAge
protected double hdop
protected int numSats
protected double altitudeM
protected int fixType
protected double magVariation
protected java.lang.String rcdVersion
protected java.lang.String mobileID
protected java.lang.Object eventCode
protected int statusCode
protected java.lang.String[] extraData
Constructor Detail |
---|
public Nmea0183()
public Nmea0183(java.lang.String rcd)
rcd
- The NMEA-0183 recordpublic Nmea0183(java.lang.String[] rcds)
rcds
- An array of NMEA-0183 recordspublic Nmea0183(java.lang.String rcd, boolean ignoreChecksum)
rcd
- The NMEA-0183 recordignoreChecksum
- True if the record's checksum is to be ignoredpublic Nmea0183(java.lang.String[] rcds, boolean ignoreChecksum)
rcds
- An array of NMEA-0183 recordsignoreChecksum
- True if the record's checksum is to be ignoredMethod Detail |
---|
public java.lang.String getTypeNames()
protected void appendCustomTypes(java.lang.StringBuffer sb, java.lang.String sep)
public void setIgnoreInvalidGpsFlag(boolean ignore)
public boolean getIgnoreInvalidGpsFlag()
public long getFieldMask()
public void setFieldMask(long fld)
public void clearFieldMask(long fld)
public boolean hasField(long fld)
public boolean hasParsedRecordTypes()
protected long getParsedRecordTypes()
protected void setParsedRecordType(long type, java.lang.String typeS)
type
- The parsed record type to add to the parsed record type bitmasktypeS
- A String representation of the parsed record typepublic java.lang.String getLastRecordType()
public boolean isValidChecksum()
public long getDDMMYY()
public void setDDMMYY(long ddmmyy)
ddmmyy
- The day/month/year [CHECK](as what?)public long getHHMMSS()
public void setHHMMSS(long hhmmss)
hhmmss
- The ours/minutes/secondspublic boolean hasFixtime()
public long getFixtime()
public long getFixtime(boolean dftToCurrentTOD)
protected boolean _parseValidGPSIndicator(java.lang.String AV)
public boolean isValidGPS()
public boolean didIgnoreInvalidGPS()
public boolean hasLatitude()
public double getLatitude()
public boolean hasLongitude()
public double getLongitude()
public boolean hasGeoPoint()
public GeoPoint getGeoPoint()
public void setGeoPoint(GeoPoint gp)
gp
- The GeoPointpublic void setGeoPoint(double lat, double lon)
lat
- The Latitudelon
- The Longitudepublic boolean hasSpeed()
public double getSpeedKnots()
public double getSpeedKPH()
public void setSpeedKnots(double knots)
public void setSpeedKPH(double kph)
public boolean hasHeading()
public double getHeading()
public void setHeading(double dir)
public boolean hasFixType()
public int getFixType()
public void setFixType(int ft)
public boolean hasNumberOfSatellites()
public int getNumberOfSatellites()
public void setNumberOfSatellites(int sats)
public boolean hasHDOP()
public double getHDOP()
public void setHDOP(double dop)
public boolean hasAltitude()
public double getAltitudeMeters()
public void setAltitudeMeters(double alt)
alt
- The magnetic variation in degreespublic boolean hasMagneticVariation()
public double getMagneticVariation()
public void setMagneticVariation(double mv)
mv
- The magnetic variation in degreespublic boolean hasRecordVersion()
public java.lang.String getRecordVersion()
public void setRecordVersion(java.lang.String vers)
public boolean hasMobileID()
public java.lang.String getMobileID()
public void setMobileID(java.lang.String id)
public boolean isEventCode(java.lang.Object ec)
public boolean hasEventCode()
public java.lang.Object getEventCode()
public void setEventCode(java.lang.Object ec)
public boolean hasStatusCode()
protected int _getStatusCode()
public int getStatusCode()
public void setStatusCode(int sc)
public int translateEventCodeToStatusCode(java.util.Map<java.lang.Object,java.lang.Integer> evCodeMap)
getStatusCode
".
If the event-code is not found in the specified map, the status code will not
be set, and 0 (STATUS_NONE) will be returned.
evCodeMap
- The Event-Code to Status-Code translation map
public boolean hasGpsAge()
public long getGpsAge()
public void setGpsAge(long age)
public boolean hasExtraData()
public java.lang.String[] getExtraData()
public java.lang.StringBuffer toStringBuffer(java.lang.StringBuffer sb)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toGPRMC()
public boolean parse(java.lang.String[] rcds)
rcds
- An array of NMEA-0183 records to parse
public boolean parse(java.lang.String rcd)
rcd
- the NMEA-0183 record to parse
public boolean parse(java.lang.String[] rcds, boolean ignoreChecksum)
rcds
- An array of NMEA-0183 records to parseignoreChecksum
- True to ignore the terminating checksum
public boolean parse(java.lang.String rcd, boolean ignoreChecksum)
rcd
- the NMEA-0183 record to parseignoreChecksum
- True to ignore the terminating checksum
protected boolean parseCustomReord(java.lang.String[] fld)
public boolean hasGPRMC()
protected boolean _parse_GPRMC(java.lang.String[] fld)
public boolean hasGPGGA()
protected boolean _parse_GPGGA(java.lang.String[] fld)
public boolean hasGPVTG()
protected boolean _parse_GPVTG(java.lang.String[] fld)
public boolean hasGPZDA()
protected boolean _parse_GPZDA(java.lang.String[] fld)
public boolean hasGTUID()
protected boolean _parse_GTUID(java.lang.String[] fld)
public boolean hasGTSTC()
protected boolean _parse_GTSTC(java.lang.String[] fld)
public boolean hasGTEVT()
protected boolean _parse_GTEVT(java.lang.String[] fld)
public static long getCurrentHHMMSS(java.util.TimeZone tz)
public static long parseFixtime(java.lang.String DDMMYY, java.lang.String HHMMSS, boolean dftToCurrentTOD)
DDMMYY
- The String representation of the "DDMMYY"HHMMSS
- The String representation of the "HHMMSS"dftToCurrentTOD
- True to default to current time-of-day
public static long parseFixtime(long ddmmyy, long hhmmss, boolean dftToCurrentTOD)
ddmmyy
- The Integer representation of the "DDMMYY"hhmmss
- The Integer representation of the "HHMMSS"
protected static long _getUTCSeconds(long dmy, long hms)
dmy
- Date received from GPS in DDMMYY format, where DD is day, MM is month,
YY is year.hms
- Time received from GPS in HHMMSS format, where HH is hour, MM is minute,
and SS is second.
public static double ParseLatitude(java.lang.String sd)
sd
- Latitude String from GPS device in ddmm.mmN/S format.
public static double ParseLatitude(java.lang.String sd, double dft)
sd
- Latitude String from GPS device in ddmm.mmN/S format.dft
- The default latitude, if the specified latitude cannot be parsed
public static double ParseLatitude(java.lang.String s, java.lang.String d)
s
- Latitude String from GPS device in ddmm.mm format.d
- Latitude hemisphere, "N" for northern, "S" for southern.
public static double ParseLatitude(java.lang.String s, java.lang.String d, double dft)
s
- Latitude String from GPS device in ddmm.mm format.d
- Latitude hemisphere, "N" for northern, "S" for southern.dft
- The default latitude, if the specified latitude cannot be parsed
public static double ParseLongitude(java.lang.String sd)
sd
- Longitude String from GPS device in dddmm.mmE/W format.
public static double ParseLongitude(java.lang.String sd, double dft)
sd
- Longitude String from GPS device in dddmm.mmE/W format.dft
- The default latitude, if the specified latitude cannot be parsed
public static double ParseLongitude(java.lang.String s, java.lang.String d)
s
- Longitude String from GPS device in dddmm.mmE/W format.d
- Longitude hemisphere, "E" for eastern, "W" for western.
public static double ParseLongitude(java.lang.String s, java.lang.String d, double dft)
s
- Longitude String from GPS device in ddmm.mm format.d
- Longitude hemisphere, "E" for eastern, "W" for western.dft
- The default latitude, if the specified latitude cannot be parsed
protected boolean _hasValidChecksum(java.lang.String str)
str
- NMEA-0183 formatted String to be checked.
public static int calcXORChecksum(java.lang.String str, boolean includeAll)
str
- NMEA-0183 formatted String to be checksummed.
public static void main(java.lang.String[] argv)
argv
- Comand-line arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |