|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
lejos.devices.GPS
public class GPS
Class to pull data from a GPS receiver
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
GPS(InputStream in)
|
Method Summary | |
---|---|
void |
addGPSListener()
|
float |
getAltitude()
The altitude above mean sea level |
int |
getHeading()
Placeholder idea: returns heading (from North) based on previous lat/long reading. |
float |
getLatitude()
|
float |
getLongitude()
|
byte |
getSatellitesTracked()
Returns the number of satellites being tracked to determine the coordinates. |
int |
getSpeed()
Placeholder idea: returns speed based on previous lat/long reading. |
int |
getTime()
Returns the last time stamp retrieved from a satellite |
void |
run()
Keeps reading sentences from GPS receiver stream and extracting data. |
void |
setOriginPoint(String longitude,
String latitude)
Placeholder Idea: Set a latitude/longitude as origin, then it will return x, y coordinates (in CM or Inches). |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Constructor Detail |
---|
public GPS(InputStream in)
in
- An input stream from the GPS receiverMethod Detail |
---|
public float getLatitude()
public float getLongitude()
public float getAltitude()
public int getTime()
public byte getSatellitesTracked()
public int getHeading()
public int getSpeed()
public void addGPSListener()
public void setOriginPoint(String longitude, String latitude)
longitude
- latitude
- public void run()
run
in class Thread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |