|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
lejos.gps.SimpleGPS
lejos.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.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 token,
String s)
Internal helper method to aid in the subclass architecture. |
| Methods inherited from class lejos.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, getPriority, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, setDaemon, 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 receiver| Method Detail |
|---|
public float getCompassDegrees()
public Date getDate()
public Satellite getSatellite(int index)
index - the satellite index
public int getSatellitesTracked()
getSatellitesTracked in class SimpleGPSpublic int getSatellitesInView()
protected void sentenceChooser(String token,
String s)
sentenceChooser in class SimpleGPStoken - s -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||