|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjwo.landserf.process.gps.garmin.GarminPacket
jwo.landserf.process.gps.garmin.WaypointDataPacket
Represents a Garmin waypoint packet used for storing named locations. The Garmin-protocol contains a large number of different waypoint packet specifications. Currently, only the one labelled D108 is implemented.
Field Summary |
Fields inherited from class jwo.landserf.process.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_Almanac_Data, Pid_Command_Data, Pid_Date_Time_Data, Pid_Nak_Byte, Pid_Position_Data, Pid_Product_Data, Pid_Product_Rqst, Pid_Protocol_Array, Pid_Prx_Wpt_Data, Pid_Pvt_Data, Pid_Records, Pid_Rte_Hdr, Pid_Rte_Link_Data, Pid_Rte_Wpt_Data, Pid_Trk_Data, Pid_Trk_Hdr, Pid_Wpt_Data, Pid_Xfer_Cmplt |
Constructor Summary | |
WaypointDataPacket(Footprint fp,
float elev,
String name)
Creates a waypoint packet from the given location and name. |
|
WaypointDataPacket(GarminPacket packet)
Creates a waypoint packet from the given packet data. |
|
WaypointDataPacket(int[] packet)
Creates a waypoint packet from the given data. |
Method Summary | |
float |
getAltitude()
Reports the altitude of this position. |
AngleRadians |
getLatitude()
Reports the latitude of the waypoint. |
AngleRadians |
getLongitude()
Reports the longitude of the waypoint. |
String |
getName()
Reports the name of the waypoint. |
void |
setDatatypeVersion(int version)
Sets which version of the packet that this class should represent. |
Methods inherited from class jwo.landserf.process.gps.garmin.GarminPacket |
calcChecksum, commandToString, createBasicPacket, createCommandPacket, getByte, getDataLength, getID, getLength, getPacket, getRawPacket, idToString, isLegal, readByte, readDouble, readFloat, readLong, readNullTerminatedString, readWord, setPacket, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WaypointDataPacket(Footprint fp, float elev, String name)
fp
- Location of waypoint in decimal degrees lat/long.elev
- Elevation of waypoint.name
- Name of waypoint (will be truncated to 6 characters).public WaypointDataPacket(int[] packet)
packet
- Data representing the waypoint packet.
PacketNotRecognizedException
- if the waypoint data format is not defined.
InvalidPacketException
- if the packet data are not the expected length.public WaypointDataPacket(GarminPacket packet)
packet
- Packet to copy.
PacketNotRecognizedException
- if the given packet is not a waypoint packet.Method Detail |
public void setDatatypeVersion(int version)
version
- Waypoint packet version.public AngleRadians getLatitude()
getLatitude
in interface Position
public AngleRadians getLongitude()
getLongitude
in interface Position
public float getAltitude()
getAltitude
in interface Position
public String getName()
getName
in interface GPSWaypoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |