us.ihmc.packets
Enum LowLevelDrivingAction

java.lang.Object
  extended by java.lang.Enum<LowLevelDrivingAction>
      extended by us.ihmc.packets.LowLevelDrivingAction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LowLevelDrivingAction>

public enum LowLevelDrivingAction
extends java.lang.Enum<LowLevelDrivingAction>


Enum Constant Summary
DIRECTION
          -1 reverse, 1 forward
DO_NOTHING
          in seconds
FOOTBRAKE
          [0,1] 0 = off 1 = max
GASPEDAL
          [0,1] 0 = off 1 = max
GET_IN_CAR
          Easy cheat mode
HANDBRAKE
          -1 disengage, 1 engage, -2.0 redisengage, 2 enage
REINITIALIZE
          Stop, let go of steering wheel and press brake
STEERING
          [-pi,pi]
 
Method Summary
static LowLevelDrivingAction fromInt(int value)
           
 int toInt()
           
static LowLevelDrivingAction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LowLevelDrivingAction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GASPEDAL

public static final LowLevelDrivingAction GASPEDAL
[0,1] 0 = off 1 = max


FOOTBRAKE

public static final LowLevelDrivingAction FOOTBRAKE
[0,1] 0 = off 1 = max


STEERING

public static final LowLevelDrivingAction STEERING
[-pi,pi]


DIRECTION

public static final LowLevelDrivingAction DIRECTION
-1 reverse, 1 forward


HANDBRAKE

public static final LowLevelDrivingAction HANDBRAKE
-1 disengage, 1 engage, -2.0 redisengage, 2 enage


DO_NOTHING

public static final LowLevelDrivingAction DO_NOTHING
in seconds


REINITIALIZE

public static final LowLevelDrivingAction REINITIALIZE
Stop, let go of steering wheel and press brake


GET_IN_CAR

public static final LowLevelDrivingAction GET_IN_CAR
Easy cheat mode

Method Detail

values

public static LowLevelDrivingAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (LowLevelDrivingAction c : LowLevelDrivingAction.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LowLevelDrivingAction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toInt

public int toInt()

fromInt

public static LowLevelDrivingAction fromInt(int value)