public class GpsFix extends IMCMessage
Modifier and Type | Class and Description |
---|---|
static class |
GpsFix.TYPE |
Modifier and Type | Field and Description |
---|---|
static int |
GFV_VALID_COG |
static int |
GFV_VALID_DATE |
static int |
GFV_VALID_HACC |
static int |
GFV_VALID_HDOP |
static int |
GFV_VALID_POS |
static int |
GFV_VALID_SOG |
static int |
GFV_VALID_TIME |
static int |
GFV_VALID_VACC |
static int |
GFV_VALID_VDOP |
static int |
ID_STATIC |
DEFAULT_ENTITY_ID, DEFAULT_SYSTEM_ID
Constructor and Description |
---|
GpsFix() |
GpsFix(IMCDefinition defs) |
GpsFix(IMCMessage msg) |
GpsFix(int validity,
GpsFix.TYPE type,
int utc_year,
short utc_month,
short utc_day,
float utc_time,
double lat,
double lon,
float height,
short satellites,
float cog,
float sog,
float hdop,
float vdop,
float hacc,
float vacc) |
Modifier and Type | Method and Description |
---|---|
static GpsFix |
clone(IMCMessage msg) |
static GpsFix |
create(java.lang.Object... values) |
double |
getCog() |
double |
getHacc() |
double |
getHdop() |
double |
getHeight() |
double |
getLat() |
double |
getLon() |
short |
getSatellites() |
double |
getSog() |
GpsFix.TYPE |
getType() |
java.lang.String |
getTypeStr() |
short |
getTypeVal() |
short |
getUtcDay() |
short |
getUtcMonth() |
double |
getUtcTime() |
int |
getUtcYear() |
double |
getVacc() |
int |
getValidity() |
double |
getVdop() |
GpsFix |
setCog(double cog) |
GpsFix |
setHacc(double hacc) |
GpsFix |
setHdop(double hdop) |
GpsFix |
setHeight(double height) |
GpsFix |
setLat(double lat) |
GpsFix |
setLon(double lon) |
GpsFix |
setSatellites(short satellites) |
GpsFix |
setSog(double sog) |
GpsFix |
setType(GpsFix.TYPE type) |
GpsFix |
setTypeStr(java.lang.String type) |
GpsFix |
setTypeVal(short type) |
GpsFix |
setUtcDay(short utc_day) |
GpsFix |
setUtcMonth(short utc_month) |
GpsFix |
setUtcTime(double utc_time) |
GpsFix |
setUtcYear(int utc_year) |
GpsFix |
setVacc(double vacc) |
GpsFix |
setValidity(int validity) |
GpsFix |
setVdop(double vdop) |
asJSON, asJSON, asMap, asXml, asXmlStripped, cloneMessage, cloneMessage, compareTo, copyFrom, decodeTupleList, dump, encodeTupleList, get, getAbbrev, getAgeInSeconds, getAsNumber, getAsString, getBitmask, getDate, getDouble, getDst, getDstEnt, getEntityName, getFieldNames, getFloat, getHeader, getHeaderValue, getInteger, getLong, getLongFieldName, getLongName, getMessage, getMessage, getMessageInfo, getMessageList, getMessageList, getMessageType, getMgid, getPayloadSize, getProtocolFactory, getRawData, getSize, getSourceName, getSrc, getSrcEnt, getString, getString, getTimestamp, getTimestampMillis, getTupleList, getTypeOf, getUnitsOf, getValue, getValues, hasFlag, hexdump, isNull, isPeriodic, main, makeImmutable, parseJson, parseXml, payloadMD5, serialize, serialize, serialize, serializePayload, setBitMask, setDst, setDstEnt, setHeader, setMessageInfo, setMessageList, setSrc, setSrcEnt, setTimestamp, setTimestampMillis, setType, setValue, setValues, toString, validate
public static final int GFV_VALID_DATE
public static final int GFV_VALID_TIME
public static final int GFV_VALID_POS
public static final int GFV_VALID_COG
public static final int GFV_VALID_SOG
public static final int GFV_VALID_HACC
public static final int GFV_VALID_VACC
public static final int GFV_VALID_HDOP
public static final int GFV_VALID_VDOP
public static final int ID_STATIC
public GpsFix()
public GpsFix(IMCMessage msg)
public GpsFix(IMCDefinition defs)
public GpsFix(int validity, GpsFix.TYPE type, int utc_year, short utc_month, short utc_day, float utc_time, double lat, double lon, float height, short satellites, float cog, float sog, float hdop, float vdop, float hacc, float vacc)
public static GpsFix create(java.lang.Object... values)
public static GpsFix clone(IMCMessage msg) throws java.lang.Exception
java.lang.Exception
public int getValidity()
public GpsFix setValidity(int validity)
validity
- Validity (bitfield)public GpsFix.TYPE getType()
public java.lang.String getTypeStr()
public short getTypeVal()
public GpsFix setType(GpsFix.TYPE type)
type
- Type (enumerated)public GpsFix setTypeStr(java.lang.String type)
type
- Type (as a String)public GpsFix setTypeVal(short type)
type
- Type (integer value)public int getUtcYear()
public GpsFix setUtcYear(int utc_year)
utc_year
- UTC Yearpublic short getUtcMonth()
public GpsFix setUtcMonth(short utc_month)
utc_month
- UTC Monthpublic short getUtcDay()
public GpsFix setUtcDay(short utc_day)
utc_day
- UTC Daypublic double getUtcTime()
public GpsFix setUtcTime(double utc_time)
utc_time
- UTC Time of Fix (s)public double getLat()
public GpsFix setLat(double lat)
lat
- Latitude WGS-84 (rad)public double getLon()
public GpsFix setLon(double lon)
lon
- Longitude WGS-84 (rad)public double getHeight()
public GpsFix setHeight(double height)
height
- Height above WGS-84 ellipsoid (m)public short getSatellites()
public GpsFix setSatellites(short satellites)
satellites
- Number of Satellitespublic double getCog()
public GpsFix setCog(double cog)
cog
- Course Over Ground (rad)public double getSog()
public GpsFix setSog(double sog)
sog
- Speed Over Ground (m/s)public double getHdop()
public GpsFix setHdop(double hdop)
hdop
- Horizontal Dilution of Precisionpublic double getVdop()
public GpsFix setVdop(double vdop)
vdop
- Vertical Dilution of Precisionpublic double getHacc()
public GpsFix setHacc(double hacc)
hacc
- Horizontal Accuracy Estimate (m)public double getVacc()
public GpsFix setVacc(double vacc)
vacc
- Vertical Accuracy Estimate (m)