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_FORCE |
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(IMCMessage msg) |
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) |
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 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_FORCE
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 static final int ID_STATIC
public VehicleState()
public VehicleState(IMCMessage msg)
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 java.lang.String getOpModeStr()
public short getOpModeVal()
public VehicleState setOpMode(VehicleState.OP_MODE op_mode)
op_mode
- Operation Mode (enumerated)public VehicleState setOpModeStr(java.lang.String op_mode)
op_mode
- Operation Mode (as a String)public VehicleState setOpModeVal(short op_mode)
op_mode
- Operation Mode (integer value)public short getErrorCount()
public VehicleState setErrorCount(short error_count)
error_count
- Errors -- Countpublic java.lang.String getErrorEnts()
public VehicleState setErrorEnts(java.lang.String error_ents)
error_ents
- Errors -- Entitiespublic int getManeuverType()
public VehicleState setManeuverType(int maneuver_type)
maneuver_type
- Maneuver -- Typepublic double getManeuverStime()
public VehicleState setManeuverStime(double maneuver_stime)
maneuver_stime
- Maneuver -- Start Time (s)public int getManeuverEta()
public VehicleState setManeuverEta(int maneuver_eta)
maneuver_eta
- Maneuver -- ETA (s)public long getControlLoops()
public VehicleState setControlLoops(long control_loops)
control_loops
- Control Loops (bitfield)public short getFlags()
public VehicleState setFlags(short flags)
flags
- Flags (bitfield)public java.lang.String getLastError()
public VehicleState setLastError(java.lang.String last_error)
last_error
- Last Error -- Descriptionpublic double getLastErrorTime()
public VehicleState setLastErrorTime(double last_error_time)
last_error_time
- Last Error -- Time (s)