|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread lejos.addon.gps.SimpleGPS lejos.addon.gps.GPS
public class GPS
This class manages a data received from a GPS Device. GPS Class manages the following NMEA Sentences: GPRMC GPGSV GPGSA GPGGA (superclass) GPVTG (superclass)
Field Summary |
---|
Fields inherited from class lejos.addon.gps.SimpleGPS |
---|
errors, ggaSentence, listeners, vtgSentence |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
GPS(InputStream in)
The constructor. |
Method Summary | |
---|---|
float |
getCompassDegrees()
Return Compass Degrees in a range: 0.0-359.9 |
Date |
getDate()
Return a Date Object with data from GGA and RMC NMEA Sentence |
Satellite |
getSatellite(int index)
Get NMEA Satellite. |
int |
getSatellitesInView()
The satellites in view is a list of satellites the GPS could theoretically connect to (i.e. |
int |
getSatellitesTracked()
Returns the number of satellites being tracked to determine the coordinates. |
protected void |
sentenceChooser(String header,
String s)
Internal helper method to aid in the subclass architecture. |
Methods inherited from class lejos.addon.gps.SimpleGPS |
---|
addListener, close, getAltitude, getCourse, getFixMode, getFixType, getHDOP, getLatitude, getLatitudeDirection, getLongitude, getLongitudeDirection, getPDOP, getPRN, getSelectionType, getSpeed, getTimeStamp, getVDOP, notifyListeners, removeListener, run |
Methods inherited from class java.lang.Thread |
---|
currentThread, getName, getPriority, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, setDaemon, setName, setPriority, sleep, start, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GPS(InputStream in)
in
- An input stream from the GPS receiverMethod Detail |
---|
public float getCompassDegrees()
public Date getDate()
public Satellite getSatellite(int index)
index
- the satellite index
public int getSatellitesTracked()
getSatellitesTracked
in class SimpleGPS
public int getSatellitesInView()
protected void sentenceChooser(String header, String s)
sentenceChooser
in class SimpleGPS
header
- s
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |