|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Mode>
edu.nau.cs.scu.Mode
public enum Mode
A set of enumeration constants which are used to describe what mode the simulated gimbal is currently in. The toString() method for each constant will return a UI friendly string representing the constant.
| Enum Constant Summary | |
|---|---|
CAGE
|
|
DISABLE_TORQUERS
|
|
ENABLE_TORQUERS
|
|
NEGATIVE_SOFT_STOP
|
|
PORT_ANTENNA_SELECT
|
|
POSITION
|
|
POSITIVE_SOFT_STOP
|
|
POWERING_UP
|
|
RATE
|
|
STARBOARD_ANTENNA_SELECT
|
|
| Method Summary | |
|---|---|
byte |
commandByte()
Retrieves the command/status byte that represents this gimbal mode. |
static Mode |
getModeFromByte(byte val)
Finds the Mode that represents the specified command/status byte |
static Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Mode[] |
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 Mode POSITIVE_SOFT_STOP
public static final Mode POSITION
public static final Mode CAGE
public static final Mode RATE
public static final Mode NEGATIVE_SOFT_STOP
public static final Mode POWERING_UP
public static final Mode ENABLE_TORQUERS
public static final Mode DISABLE_TORQUERS
public static final Mode PORT_ANTENNA_SELECT
public static final Mode STARBOARD_ANTENNA_SELECT
| Method Detail |
|---|
public static Mode[] values()
for (Mode c : Mode.values()) System.out.println(c);
public static Mode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic byte commandByte()
public static Mode getModeFromByte(byte val)
val - The command byte representing a mode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||