public class Loiter extends Maneuver
Modifier and Type | Class and Description |
---|---|
static class |
Loiter.DIRECTION |
static class |
Loiter.SPEED_UNITS |
static class |
Loiter.TYPE |
static class |
Loiter.Z_UNITS |
Modifier and Type | Field and Description |
---|---|
static int |
ID_STATIC |
DEFAULT_ENTITY_ID, DEFAULT_SYSTEM_ID
Constructor and Description |
---|
Loiter() |
Loiter(IMCDefinition defs) |
Loiter(int timeout,
double lat,
double lon,
float z,
Loiter.Z_UNITS z_units,
int duration,
float speed,
Loiter.SPEED_UNITS speed_units,
Loiter.TYPE type,
float radius,
float length,
double bearing,
Loiter.DIRECTION direction,
java.lang.String custom) |
Modifier and Type | Method and Description |
---|---|
static Loiter |
clone(IMCMessage msg) |
static Loiter |
create(java.lang.Object... values) |
double |
getBearing() |
java.util.LinkedHashMap<java.lang.String,java.lang.String> |
getCustom() |
Loiter.DIRECTION |
getDirection()
Desired direction.
|
int |
getDuration() |
double |
getLat() |
double |
getLength() |
double |
getLon() |
double |
getRadius() |
double |
getSpeed() |
Loiter.SPEED_UNITS |
getSpeedUnits()
Speed units.
|
int |
getTimeout() |
Loiter.TYPE |
getType()
Loiter maneuver type.
|
double |
getZ() |
Loiter.Z_UNITS |
getZUnits()
Units of the z reference.
|
void |
setBearing(double bearing) |
void |
setCustom(java.util.LinkedHashMap<java.lang.String,?> custom) |
void |
setCustom(java.lang.String custom) |
void |
setDirection(Loiter.DIRECTION direction) |
void |
setDirection(short direction) |
void |
setDirection(java.lang.String direction) |
void |
setDuration(int duration) |
void |
setLat(double lat) |
void |
setLength(double length) |
void |
setLon(double lon) |
void |
setRadius(double radius) |
void |
setSpeed(double speed) |
void |
setSpeedUnits(Loiter.SPEED_UNITS speed_units) |
void |
setSpeedUnits(short speed_units) |
void |
setSpeedUnits(java.lang.String speed_units) |
void |
setTimeout(int timeout) |
void |
setType(Loiter.TYPE type) |
void |
setType(short type) |
void |
setType(java.lang.String type) |
void |
setZ(double z) |
void |
setZUnits(Loiter.Z_UNITS z_units) |
void |
setZUnits(short z_units) |
void |
setZUnits(java.lang.String z_units) |
asJSON, asXml, cloneMessage, cloneMessage, compareTo, 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, hasFlag, hexdump, isNull, isPeriodic, main, makeImmutable, parseXml, payloadMD5, serialize, serialize, setBitMask, setDst, setDstEnt, setHeader, setMessage, setMessageList, setSrc, setSrcEnt, setTimestamp, setTimestampMillis, setType, setValue, setValues, toString, validate
public static final int ID_STATIC
public Loiter()
public Loiter(IMCDefinition defs)
public Loiter(int timeout, double lat, double lon, float z, Loiter.Z_UNITS z_units, int duration, float speed, Loiter.SPEED_UNITS speed_units, Loiter.TYPE type, float radius, float length, double bearing, Loiter.DIRECTION direction, java.lang.String custom)
public static Loiter create(java.lang.Object... values)
public static Loiter clone(IMCMessage msg) throws java.lang.Exception
java.lang.Exception
public int getTimeout()
public double getLat()
public double getLon()
public double getZ()
public Loiter.Z_UNITS getZUnits()
public int getDuration()
public double getSpeed()
public Loiter.SPEED_UNITS getSpeedUnits()
public Loiter.TYPE getType()
public double getRadius()
public double getLength()
public double getBearing()
public Loiter.DIRECTION getDirection()
public java.util.LinkedHashMap<java.lang.String,java.lang.String> getCustom()
public void setTimeout(int timeout)
timeout
- Timeout (s)public void setLat(double lat)
lat
- Latitude WGS-84 (rad)public void setLon(double lon)
lon
- Longitude WGS-84 (rad)public void setZ(double z)
z
- Z Reference (m)public void setZUnits(Loiter.Z_UNITS z_units)
z_units
- Z Units (enumerated)public void setZUnits(java.lang.String z_units)
z_units
- Z Units (as a String)public void setZUnits(short z_units)
z_units
- Z Units (integer value)public void setDuration(int duration)
duration
- Duration (s)public void setSpeed(double speed)
speed
- Speedpublic void setSpeedUnits(Loiter.SPEED_UNITS speed_units)
speed_units
- Speed Units (enumerated)public void setSpeedUnits(java.lang.String speed_units)
speed_units
- Speed Units (as a String)public void setSpeedUnits(short speed_units)
speed_units
- Speed Units (integer value)public void setType(Loiter.TYPE type)
type
- Loiter Type (enumerated)public void setType(java.lang.String type)
type
- Loiter Type (as a String)public void setType(short type)
type
- Loiter Type (integer value)public void setRadius(double radius)
radius
- Radius (m)public void setLength(double length)
length
- Length (m)public void setBearing(double bearing)
bearing
- Bearing (rad)public void setDirection(Loiter.DIRECTION direction)
direction
- Direction (enumerated)public void setDirection(java.lang.String direction)
direction
- Direction (as a String)public void setDirection(short direction)
direction
- Direction (integer value)public void setCustom(java.util.LinkedHashMap<java.lang.String,?> custom)
custom
- Custom settings for maneuver (tuplelist)public void setCustom(java.lang.String custom)