public class GPSSerialReader extends Object implements Runnable
Constructor and Description |
---|
GPSSerialReader(String portName)
Constructor that takes the name of the serial port onto which
the GPS is transmitting data.
|
Modifier and Type | Method and Description |
---|---|
double |
getLatitude() |
double |
getLongitude() |
int |
getNumberOfSatellites() |
static void |
main(String[] args)
Test
|
void |
run() |
public GPSSerialReader(String portName)
portName
- The name of the portpublic void run()
run
in interface Runnable
Runnable.run()
public double getLatitude()
public double getLongitude()
public int getNumberOfSatellites()