Package ch.hevs.kart

Enum Class KartHardwareSettings

java.lang.Object
java.lang.Enum<KartHardwareSettings>
ch.hevs.kart.KartHardwareSettings
All Implemented Interfaces:
Serializable, Comparable<KartHardwareSettings>, Constable

public enum KartHardwareSettings extends Enum<KartHardwareSettings>

Kart hardware settings flags.

This flags can be used to setup some fundamental hardware settings as for example the position of the steering end switch, inverting the steering or drive direction.

  • Enum Constant Details

    • DriveInverseDirection

      public static final KartHardwareSettings DriveInverseDirection

      If this option is set, the Kart inverses the drive motor direction.

    • SteeringInverseDirection

      public static final KartHardwareSettings SteeringInverseDirection

      If this option is set, the Kart inverses the steering stepper motor direction.

    • SteeringInverseEndContactSide

      public static final KartHardwareSettings SteeringInverseEndContactSide

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

    • SteeringEmulateEndContact

      public static final KartHardwareSettings SteeringEmulateEndContact

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

  • Method Details

    • values

      public static KartHardwareSettings[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static KartHardwareSettings valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null