Package com.crossbotics.ftchelper.robot
Enum Class Aim.Source
- All Implemented Interfaces:
Serializable,Comparable<Aim.Source>,Constable
- Enclosing class:
Aim
Where the goal's direction and distance come from now.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Aim.SourceReturns the enum constant of this class with the specified name.static Aim.Source[]values()Returns an array containing the constants of this enum class, in the order they are declared.words()"camera", "odometry" or "no goal", for the Driver Station.
-
Enum Constant Details
-
CAMERA
the camera sees the goal -
ODOMETRY
worked out from the odometry (where the robot is) and Tunables.Aim's goal point -
NONE
neither: no fresh picture, and no odometry (or no goal point)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
words
"camera", "odometry" or "no goal", for the Driver Station.
-