public class VehicleState extends IMCMessage
Modifier and Type | Class and Description |
---|---|
static class |
VehicleState.OP_MODE |
Modifier and Type | Field and Description |
---|---|
static long |
CL_ALL |
static long |
CL_ALTITUDE |
static long |
CL_DEPTH |
static long |
CL_EXTERNAL |
static long |
CL_NO_OVERRIDE |
static long |
CL_NONE |
static long |
CL_PATH |
static long |
CL_PITCH |
static long |
CL_ROLL |
static long |
CL_SPEED |
static long |
CL_TELEOPERATION |
static long |
CL_TORQUE |
static long |
CL_VERTICAL_RATE |
static long |
CL_YAW |
static long |
CL_YAW_RATE |
static int |
ID_STATIC |
static short |
VFLG_MANEUVER_DONE |
DEFAULT_ENTITY_ID, DEFAULT_SYSTEM_ID
Constructor and Description |
---|
VehicleState() |
VehicleState(IMCDefinition defs) |
VehicleState(VehicleState.OP_MODE op_mode,
short error_count,
java.lang.String error_ents,
int maneuver_type,
double maneuver_stime,
int maneuver_eta,
long control_loops,
short flags,
java.lang.String last_error,
double last_error_time) |
Modifier and Type | Method and Description |
---|---|
static VehicleState |
clone(IMCMessage msg) |
static VehicleState |
create(java.lang.Object... values) |
long |
getControlLoops()
Enabled control loops.
|
short |
getErrorCount() |
java.lang.String |
getErrorEnts() |
short |
getFlags() |
java.lang.String |
getLastError() |
double |
getLastErrorTime() |
int |
getManeuverEta() |
double |
getManeuverStime() |
int |
getManeuverType() |
VehicleState.OP_MODE |
getOpMode()
The overall operation mode.
|
void |
setControlLoops(long control_loops) |
void |
setErrorCount(short error_count) |
void |
setErrorEnts(java.lang.String error_ents) |
void |
setFlags(short flags) |
void |
setLastError(java.lang.String last_error) |
void |
setLastErrorTime(double last_error_time) |
void |
setManeuverEta(int maneuver_eta) |
void |
setManeuverStime(double maneuver_stime) |
void |
setManeuverType(int maneuver_type) |
void |
setOpMode(short op_mode) |
void |
setOpMode(java.lang.String op_mode) |
void |
setOpMode(VehicleState.OP_MODE op_mode) |
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 static final long CL_NONE
public static final long CL_PATH
public static final long CL_TELEOPERATION
public static final long CL_ALTITUDE
public static final long CL_DEPTH
public static final long CL_ROLL
public static final long CL_PITCH
public static final long CL_YAW
public static final long CL_SPEED
public static final long CL_YAW_RATE
public static final long CL_VERTICAL_RATE
public static final long CL_TORQUE
public static final long CL_EXTERNAL
public static final long CL_NO_OVERRIDE
public static final long CL_ALL
public static final short VFLG_MANEUVER_DONE
public VehicleState()
public VehicleState(IMCDefinition defs)
public VehicleState(VehicleState.OP_MODE op_mode, short error_count, java.lang.String error_ents, int maneuver_type, double maneuver_stime, int maneuver_eta, long control_loops, short flags, java.lang.String last_error, double last_error_time)
public static VehicleState create(java.lang.Object... values)
public static VehicleState clone(IMCMessage msg) throws java.lang.Exception
java.lang.Exception
public VehicleState.OP_MODE getOpMode()
public short getErrorCount()
public java.lang.String getErrorEnts()
public int getManeuverType()
public double getManeuverStime()
public int getManeuverEta()
public long getControlLoops()
public short getFlags()
public java.lang.String getLastError()
public double getLastErrorTime()
public void setOpMode(VehicleState.OP_MODE op_mode)
op_mode
- Operation Mode (enumerated)public void setOpMode(java.lang.String op_mode)
op_mode
- Operation Mode (as a String)public void setOpMode(short op_mode)
op_mode
- Operation Mode (integer value)public void setErrorCount(short error_count)
error_count
- Errors -- Countpublic void setErrorEnts(java.lang.String error_ents)
error_ents
- Errors -- Entitiespublic void setManeuverType(int maneuver_type)
maneuver_type
- Maneuver -- Typepublic void setManeuverStime(double maneuver_stime)
maneuver_stime
- Maneuver -- Start Time (s)public void setManeuverEta(int maneuver_eta)
maneuver_eta
- Maneuver -- ETA (s)public void setControlLoops(long control_loops)
control_loops
- Control Loops (bitfield)public void setFlags(short flags)
flags
- Flags (bitfield)public void setLastError(java.lang.String last_error)
last_error
- Last Error -- Descriptionpublic void setLastErrorTime(double last_error_time)
last_error_time
- Last Error -- Time (s)