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(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, 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 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(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 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 VehicleState setOpMode(VehicleState.OP_MODE op_mode)
op_mode
- Operation Mode (enumerated)public VehicleState setOpMode(java.lang.String op_mode)
op_mode
- Operation Mode (as a String)public VehicleState setOpMode(short op_mode)
op_mode
- Operation Mode (integer value)public VehicleState setErrorCount(short error_count)
error_count
- Errors -- Countpublic VehicleState setErrorEnts(java.lang.String error_ents)
error_ents
- Errors -- Entitiespublic VehicleState setManeuverType(int maneuver_type)
maneuver_type
- Maneuver -- Typepublic VehicleState setManeuverStime(double maneuver_stime)
maneuver_stime
- Maneuver -- Start Time (s)public VehicleState setManeuverEta(int maneuver_eta)
maneuver_eta
- Maneuver -- ETA (s)public VehicleState setControlLoops(long control_loops)
control_loops
- Control Loops (bitfield)public VehicleState setFlags(short flags)
flags
- Flags (bitfield)public VehicleState setLastError(java.lang.String last_error)
last_error
- Last Error -- Descriptionpublic VehicleState setLastErrorTime(double last_error_time)
last_error_time
- Last Error -- Time (s)