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()
Type of fix.
|
short |
getUtcDay() |
short |
getUtcMonth() |
double |
getUtcTime() |
int |
getUtcYear() |
double |
getVacc() |
int |
getValidity()
Validity of fields.
|
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 |
setType(short type) |
GpsFix |
setType(java.lang.String 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, asXml, cloneMessage, cloneMessage, compareTo, copyFrom, decodeTupleList, dump, encodeTupleList, get, getAbbrev, getAsNumber, getAsString, getBitmask, getDate, getDouble, getDst, getDstEnt, getFieldNames, getFloat, getHeader, getHeaderValue, getInteger, getLong, getLongFieldName, getLongName, getMessage, getMessage, 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, parseXml, payloadMD5, serialize, serialize, setBitMask, setDst, setDstEnt, setHeader, setMessageList, setSrc, setSrcEnt, setTimestamp, setTimestampMillis, setType, setValue, setValues, toString, validate
public static final int ID_STATIC
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 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.TYPE getType()
public int getUtcYear()
public short getUtcMonth()
public short getUtcDay()
public double getUtcTime()
public double getLat()
public double getLon()
public double getHeight()
public short getSatellites()
public double getCog()
public double getSog()
public double getHdop()
public double getVdop()
public double getHacc()
public double getVacc()
public GpsFix setValidity(int validity)
validity
- Validity (bitfield)public GpsFix setType(GpsFix.TYPE type)
type
- Type (enumerated)public GpsFix setType(java.lang.String type)
type
- Type (as a String)public GpsFix setType(short type)
type
- Type (integer value)public GpsFix setUtcYear(int utc_year)
utc_year
- UTC Yearpublic GpsFix setUtcMonth(short utc_month)
utc_month
- UTC Monthpublic GpsFix setUtcDay(short utc_day)
utc_day
- UTC Daypublic GpsFix setUtcTime(double utc_time)
utc_time
- UTC Time of Fix (s)public GpsFix setLat(double lat)
lat
- Latitude WGS-84 (rad)public GpsFix setLon(double lon)
lon
- Longitude WGS-84 (rad)public GpsFix setHeight(double height)
height
- Height above WGS-84 ellipsoid (m)public GpsFix setSatellites(short satellites)
satellites
- Number of Satellitespublic GpsFix setCog(double cog)
cog
- Course Over Ground (rad)public GpsFix setSog(double sog)
sog
- Speed Over Ground (m/s)public GpsFix setHdop(double hdop)
hdop
- Horizontal Dilution of Precisionpublic GpsFix setVdop(double vdop)
vdop
- Vertical Dilution of Precisionpublic GpsFix setHacc(double hacc)
hacc
- Horizontal Accuracy Estimate (m)public GpsFix setVacc(double vacc)
vacc
- Vertical Accuracy Estimate (m)