Package frc.robot
Enum Class Constants.ArmPosition
- All Implemented Interfaces:
Serializable
,Comparable<Constants.ArmPosition>
,Constable
- Enclosing class:
- Constants
Constants with the arm and elevator positions for various positions.
Wrist position is in degrees, elevator position is in meters.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionwrist up and elevator downelevator at bottom, wrist open so we don't crush the algae into the robot -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal double
The elevator position in meters.final double
The wrist position in degrees. -
Method Summary
Modifier and TypeMethodDescriptionstatic Constants.ArmPosition
Returns the enum constant of this class with the specified name.static Constants.ArmPosition[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTAKE_CORAL_CORAL_STATION
-
INTAKE_ALGAE_LEVEL_2
-
INTAKE_ALGAE_LEVEL_3
-
OUTTAKE_CORAL_LEVEL_1
-
OUTTAKE_CORAL_LEVEL_2
-
OUTTAKE_CORAL_LEVEL_3
-
OUTTAKE_CORAL_LEVEL_4
-
OUTTAKE_CORAL_LEVEL_4_HIGH
-
OUTTAKE_ALGAE_PROCESSOR
-
OUTTAKE_ALGAE_NET
-
STOW_ALGAE
elevator at bottom, wrist open so we don't crush the algae into the robot -
STOW
wrist up and elevator down -
CLIMB
-
-
Field Details
-
ELEVATOR_POSITION
public final double ELEVATOR_POSITIONThe elevator position in meters. -
WRIST_POSITION
public final double WRIST_POSITIONThe wrist position in degrees.
-
-
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
-