Enum Class Aim.Stage

java.lang.Object
java.lang.Enum<Aim.Stage>
com.crossbotics.ftchelper.robot.Aim.Stage
All Implemented Interfaces:
Serializable, Comparable<Aim.Stage>, Constable
Enclosing class:
Aim

public static enum Aim.Stage extends Enum<Aim.Stage>
How far along the aim is, for the Driver Station line, lights or a buzz: each stage includes the ones before.
  • Enum Constant Details

    • NOT_SEEN

      public static final Aim.Stage NOT_SEEN
      The robot cannot aim (no camera with a goal, no odometry goal point), or no goal now.
    • SEEN

      public static final Aim.Stage SEEN
      The goal is known (camera, or the odometry backup).
    • IN_RANGE

      public static final Aim.Stage IN_RANGE
      ... and its distance is inside the launcher's shot table (or the launcher has no table).
    • LOCKED

      public static final Aim.Stage LOCKED
      ... and the robot (or the following turret) points at it, within toleranceDeg.
  • Method Details

    • values

      public static Aim.Stage[] 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 Aim.Stage 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
    • words

      public String words()
      "not seen", "seen", "in range", "LOCKED".