|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ErrorStatus>
org.robokind.impl.motion.dynamixel.enums.ErrorStatus
public enum ErrorStatus
Enumeration of the different Dynamixel errors.
Enum Constant Summary | |
---|---|
AngleLimit
Angle limit out of range. |
|
Checksum
Incorrect packet checksum. |
|
InputVoltage
Input voltage error. |
|
Instruction
Dynamixel instruction out of range. |
|
Overheating
DynamixelJoint temperature too high. |
|
Overload
The current load cannot be handled by the allowed torque. |
|
Range
Dynamixel command is out of range, |
Method Summary | |
---|---|
Byte |
getByte()
Return byte value for the ErrorStatus. |
static ErrorStatus |
getStatus(int b)
Returns the first ErrorStatus flag contained in the int. |
static List<ErrorStatus> |
getStatusList(int b)
Returns a list of ErrorStatuses represented by the flags joint in the given int. |
static ErrorStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ErrorStatus[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ErrorStatus InputVoltage
public static final ErrorStatus AngleLimit
public static final ErrorStatus Overheating
public static final ErrorStatus Range
public static final ErrorStatus Checksum
public static final ErrorStatus Overload
public static final ErrorStatus Instruction
Method Detail |
---|
public static ErrorStatus[] values()
for (ErrorStatus c : ErrorStatus.values()) System.out.println(c);
public static ErrorStatus valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic Byte getByte()
public static List<ErrorStatus> getStatusList(int b)
b
- ErrorStatus flags
public static ErrorStatus getStatus(int b)
b
- ErrorStatus flags
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |