public class VTGSentence extends NMEASentence
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HEADER |
private float |
KNOT |
private float |
magneticCourse |
private java.lang.String |
nmeaHeader |
private float |
speed |
private float |
trueCourse |
LATITUDE, LONGITUDE
Constructor and Description |
---|
VTGSentence() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHeader()
Returns the NMEA header for this sentence.
|
float |
getSpeed()
Get Speed in Kilometers
|
float |
getTrueCourse()
Get true course, in degrees.
|
void |
parse(java.lang.String sentence)
Parse a RMC Sentence
$GPVTG,054.7,T,034.4,M,005.5,N,010.2,K,A*53
|
degreesMinToDegrees, isNumeric
private java.lang.String nmeaHeader
private final float KNOT
private float speed
private float trueCourse
private float magneticCourse
public static final java.lang.String HEADER
public java.lang.String getHeader()
getHeader
in class NMEASentence
public float getTrueCourse()
public float getSpeed()
public void parse(java.lang.String sentence)
parse
in class NMEASentence