|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavaclient.PlayerDevice
javaclient.GPSInterface
public class GPSInterface
The gps interface provides access to an absolute position system, such as GPS. This interface accepts no commands.
Field Summary |
---|
Fields inherited from class javaclient.PlayerDevice |
---|
device, DIFFERENCE_SYNCH_FACTOR, index, is, os, pc, PLAYER_MAX_REQREP_SIZE, PLAYER_STXX, reserved, size, t_sec, t_usec, ts_sec, ts_usec |
Constructor Summary | |
---|---|
GPSInterface(PlayerClient pc,
short indexOfDevice)
Constructor for GPSInterface. |
Method Summary | |
---|---|
int |
getAltitude()
Get the altitude, in millimeters. |
int |
getErrHorz()
Get the horizontal error in mm. |
int |
getErrVert()
Get the vertical error in mm. |
short |
getHDop()
Get the horizontal dilution of position (HDOP), times 10. |
int |
getLatitude()
Get the latitude in degrees / 1e7. |
int |
getLongitude()
Get the longitude in degrees / 1e7. |
byte |
getNumSats()
Get the number of satellites in view. |
byte |
getQuality()
Get the quality of fix. |
int |
getTimeSec()
Get the GPS (UTC) time in seconds since the epoch. |
int |
getTimeuSec()
Get the GPS (UTC) time in microseconds since the epoch. |
int |
getUtmE()
Get the UTM WGS84 coordinates, easting in cm. |
int |
getUtmN()
Get the UTM WGS84 coordinates, northing in cm. |
short |
getVDop()
Get the vertical dilution of position (VDOP), times 10. |
void |
readData()
Read the current global position and heading information. |
Methods inherited from class javaclient.PlayerDevice |
---|
getTimeForDataSampled_sec, getTimeForDataSampled_usec, getTimeForDataSampled, getTimeForDataSent_sec, getTimeForDataSent_usec, getTimeForDataSent, handleEARMessage, handleNARMessage, handleResponse, readHeader, sendHeader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GPSInterface(PlayerClient pc, short indexOfDevice)
pc
- a reference to the PlayerClient objectindexOfDevice
- the index of the deviceMethod Detail |
---|
public void readData()
readData
in class PlayerDevice
public int getTimeSec()
public int getTimeuSec()
public int getLatitude()
public int getLongitude()
public int getAltitude()
public int getUtmE()
public int getUtmN()
public byte getQuality()
public byte getNumSats()
public short getHDop()
public short getVDop()
public int getErrHorz()
public int getErrVert()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |