Enum Class Aim.Source

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

public static enum Aim.Source extends Enum<Aim.Source>
Where the goal's direction and distance come from now.
  • Enum Constant Details

    • CAMERA

      public static final Aim.Source CAMERA
      the camera sees the goal
    • ODOMETRY

      public static final Aim.Source ODOMETRY
      worked out from the odometry (where the robot is) and Tunables.Aim's goal point
    • NONE

      public static final Aim.Source NONE
      neither: no fresh picture, and no odometry (or no goal point)
  • Method Details

    • values

      public static Aim.Source[] 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.Source 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()
      "camera", "odometry" or "no goal", for the Driver Station.