|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dk.itu.haas.GPS.Garmin.GarminPacket | +--dk.itu.haas.GPS.Garmin.PVTDataPacket
This class encapsulates the PVT (Position, velocity and time) packet. After receiving a Cmnd_Start_Pvt-packet, the GPS will continually transmit packets of the PVT-type.
Field Summary | |
protected float |
alt
|
protected float |
epe
|
protected float |
eph
|
protected float |
epv
|
protected int |
fix
|
protected PositionRadians |
lat
|
protected int |
leap_scnds
|
protected PositionRadians |
lon
|
protected float |
msl_hght
|
protected double |
tow
|
protected float |
veast
|
protected long |
wn_days
|
protected float |
vnorth
|
protected float |
vup
|
Fields inherited from class dk.itu.haas.GPS.Garmin.GarminPacket |
Cmnd_Abort_Transfer, Cmnd_Start_Pvt_Data, Cmnd_Stop_Pvt_Data, Cmnd_Transfer_Alm, Cmnd_Transfer_Posn, Cmnd_Transfer_Prx, Cmnd_Transfer_Rte, Cmnd_Transfer_Time, Cmnd_Transfer_Trk, Cmnd_Transfer_Wpt, Cmnd_Turn_Off_Pwr, DLE, ETX, packet, Pid_Ack_Byte, Pid_Command_Data, Pid_Date_Time_Data, Pid_Nak_Byte, Pid_Position_Data, Pid_Product_Data, Pid_Product_Rqst, Pid_Protocol_Array, Pid_Pvt_Data, Pid_Records, Pid_Wpt_Data, Pid_Xfer_Cmplt |
Constructor Summary | |
PVTDataPacket(GarminPacket p)
This method is a copy-constructor allowing to "upgrade" a GarminPacket to a PVTDataPacket. |
|
PVTDataPacket(int[] p)
Treats the packet p as a packet containing PVT-data. |
Method Summary | |
int |
getHours()
Returns the hour of the day. |
PositionRadians |
getLatitude()
This method returns the latitude of the position. |
PositionRadians |
getLongitude()
This method returns the longitude of the position. |
short |
getMinutes()
Returns the minute of the hour. |
short |
getSeconds()
Returns the second of the minute. |
Methods inherited from class dk.itu.haas.GPS.Garmin.GarminPacket |
calcChecksum, createBasicPacket, createCommandPacket, getByte, getDataLength, getID, getLength, getPacket, getRawPacket, idToString, isLegal, readByte, readDouble, readFloat, readLong, readNullTerminatedString, readWord, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected float alt
protected float epe
protected float eph
protected float epv
protected int fix
protected double tow
protected PositionRadians lat
protected PositionRadians lon
protected float veast
protected float vnorth
protected float vup
protected float msl_hght
protected int leap_scnds
protected long wn_days
Constructor Detail |
public PVTDataPacket(int[] p)
public PVTDataPacket(GarminPacket p)
Method Detail |
public int getHours()
getHours
in interface ITime
public short getMinutes()
getMinutes
in interface ITime
public short getSeconds()
getSeconds
in interface ITime
public PositionRadians getLatitude()
getLatitude
in interface IPosition
public PositionRadians getLongitude()
getLongitude
in interface IPosition
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |