ch.hei.kart
Enum KartHardwareSettings

java.lang.Object
  extended by java.lang.Enum<KartHardwareSettings>
      extended by ch.hei.kart.KartHardwareSettings
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<KartHardwareSettings>

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

Kart hardware settings.

Author:
Michael Clausen (clm@hevs.ch)

Enum Constant Summary
EmulateSteeringEndContact
          If this option is set, the kart does not use the local steering end switch contact, it uses a simulated one.
InverseDriveMotorDirection
          If this option is set, the Kart inverses the drive motor direction.
InverseSteeringDirection
          If this option is set, the Kart inverses the steering stepper motor direction.
InverseSteeringEndContactPosition
          If this option is set, the Kart inverses the steering stepper motor counter direction as the end sensor is on the opposite position.
RestartSlaves
          Once this option is set, some of the slave FPGA's are reseted.
 
Method Summary
static KartHardwareSettings valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static KartHardwareSettings[] 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

InverseDriveMotorDirection

public static final KartHardwareSettings InverseDriveMotorDirection
If this option is set, the Kart inverses the drive motor direction.


InverseSteeringDirection

public static final KartHardwareSettings InverseSteeringDirection
If this option is set, the Kart inverses the steering stepper motor direction.


InverseSteeringEndContactPosition

public static final KartHardwareSettings InverseSteeringEndContactPosition
If this option is set, the Kart inverses the steering stepper motor counter direction as the end sensor is on the opposite position.


EmulateSteeringEndContact

public static final KartHardwareSettings EmulateSteeringEndContact
If this option is set, the kart does not use the local steering end switch contact, it uses a simulated one.


RestartSlaves

public static final KartHardwareSettings RestartSlaves
Once this option is set, some of the slave FPGA's are reseted.

Method Detail

values

public static KartHardwareSettings[] 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 (KartHardwareSettings c : KartHardwareSettings.values())
    System.out.println(c);

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

valueOf

public static KartHardwareSettings 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