de.fhg.igd.gps
Class NMEA183GSASentence

java.lang.Object
  extended byde.fhg.igd.gps.NMEA183Sentence
      extended byde.fhg.igd.gps.NMEA183GSASentence

public class NMEA183GSASentence
extends NMEA183Sentence

GSA - GPS DOP and active satellites

Author:
Dennis Bartussek

Field Summary
protected  int fixDimension_
          Dimension of fix ( 2D or 3D fix )
protected  String fixSelection_
          Selection of 2D or 3D fix:
A = auto
M = manual
protected  double hdop_
          horizontal dilution of precision
protected  double pdop_
          dilution of precision
protected  Vector prns_
          PRNs of satellites used for fix ( up to 12 )
Each prn is stored using an Integer object.
protected  double vdop_
          vertical dilution of precision
 
Fields inherited from class de.fhg.igd.gps.NMEA183Sentence
checksum_, fields_, sentenceId_, sentenceId_desc_, talkerId_, talkerId_desc_
 
Constructor Summary
NMEA183GSASentence(String talkerId)
          Constructs a new NMEAGSA183Sentence with the specified talkerId.
 
Method Summary
protected  String bodyToString()
          Returns the body part of this sentence's string representation.
 int getFixDimension()
          Returns the fix dimension ( 2 for 2D, 3 for 3D ).
 String getFixSelection()
          Returns the fix selection method ( "A" for auto and "M" for manual fix selection ).
 double getHdop()
          Returns the horizontal dilution of precision.
 double getPdop()
          Returns the dilution of precision.
 Vector getPrns()
          Returns the prns of all satellites being used for the fix as a Vector of Integer objects.
 double getVdop()
          Returns the vertical dilution of precision.
 void parse(NMEA183Tokenizer tokenizer)
          Reads and parses a NMEA183 sentence from tokenizer.
 
Methods inherited from class de.fhg.igd.gps.NMEA183Sentence
computeChecksum, getDateField, getFloatField, getIntegerField, getLatitudeField, getLongitudeField, getSentenceId, getStringField, hasChecksum, headerToString, rebuildSentence, toString, valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fixSelection_

protected String fixSelection_
Selection of 2D or 3D fix:
A = auto
M = manual


fixDimension_

protected int fixDimension_
Dimension of fix ( 2D or 3D fix )


prns_

protected Vector prns_
PRNs of satellites used for fix ( up to 12 )
Each prn is stored using an Integer object.


pdop_

protected double pdop_
dilution of precision


hdop_

protected double hdop_
horizontal dilution of precision


vdop_

protected double vdop_
vertical dilution of precision

Constructor Detail

NMEA183GSASentence

public NMEA183GSASentence(String talkerId)
Constructs a new NMEAGSA183Sentence with the specified talkerId.

Parameters:
talkerId - the talker id of this NMEA183GSASentence
Method Detail

parse

public void parse(NMEA183Tokenizer tokenizer)
           throws NMEA183SentenceFormatException
Description copied from class: NMEA183Sentence
Reads and parses a NMEA183 sentence from tokenizer.

Overrides:
parse in class NMEA183Sentence
Parameters:
tokenizer - the NMEA183Tokenizer to read from
Throws:
NMEA183SentenceFormatException - if the read sentence does not have the appropriate format

getFixSelection

public String getFixSelection()
Returns the fix selection method ( "A" for auto and "M" for manual fix selection ).

Returns:
the fix selection method as a String object.

getFixDimension

public int getFixDimension()
Returns the fix dimension ( 2 for 2D, 3 for 3D ).

Returns:
the fix dimension

getPrns

public Vector getPrns()
Returns the prns of all satellites being used for the fix as a Vector of Integer objects.

Returns:
the prns of all satellites being used for the fix as a Vector of Integer objects

getPdop

public double getPdop()
Returns the dilution of precision.

Returns:
the dilution of precision

getHdop

public double getHdop()
Returns the horizontal dilution of precision.

Returns:
the horizontal dilution of precision

getVdop

public double getVdop()
Returns the vertical dilution of precision.

Returns:
the vertical dilution of precision

bodyToString

protected String bodyToString()
Description copied from class: NMEA183Sentence
Returns the body part of this sentence's string representation.

Overrides:
bodyToString in class NMEA183Sentence
Returns:
the body part of this sentence's string representation.
See Also:
NMEA183Sentence.toString()


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.