Enum Class Intake.IntakeState

java.lang.Object
java.lang.Enum<Intake.IntakeState>
com.stuypulse.robot.subsystems.intake.Intake.IntakeState
All Implemented Interfaces:
Serializable, Comparable<Intake.IntakeState>, Constable
Enclosing class:
Intake

public static enum Intake.IntakeState extends Enum<Intake.IntakeState>
Enum representing the different possible states of the intake.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The intake is brought up repeatedly to an angle between stowed and deployed to dislodge gamepieces.
     
    The intake is brought up once to an angle between stowed and deployed to dislodge gamepieces.
    The intake is deployed but rollers are off.
    The intake is pushed against the bumpers to re-zero the pivot.
    The intake is stowed and rollers are off.
    The intake is deployed and rollers are running to take in gamepieces.
    The intake is deployed and rollers are running in reverse to expel gamepieces.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private edu.wpi.first.units.measure.Angle
    The target angle of the intake pivot.
    private double
    The target percentage of voltage of the intake rollers.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    IntakeState(edu.wpi.first.units.measure.Angle targetAngle, double targetDutyCycle)
    Constructs an IntakeState with its target values.
  • Method Summary

    Modifier and Type
    Method
    Description
    edu.wpi.first.units.measure.Angle
    Gets the target position of the pivot.
    double
    Gets the target position of the pivot.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Field Details

    • targetAngle

      private edu.wpi.first.units.measure.Angle targetAngle
      The target angle of the intake pivot.
    • targetDutyCycle

      private double targetDutyCycle
      The target percentage of voltage of the intake rollers.
  • Constructor Details

    • IntakeState

      private IntakeState(edu.wpi.first.units.measure.Angle targetAngle, double targetDutyCycle)
      Constructs an IntakeState with its target values.
      Parameters:
      targetAngle - In any unit, the target position of the intake pivot
      targetDutyCycle - In any unit, the target percentage of voltage of the intake rollers
  • Method Details

    • values

      public static Intake.IntakeState[] 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 Intake.IntakeState 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
    • getTargetAngle

      public edu.wpi.first.units.measure.Angle getTargetAngle()
      Gets the target position of the pivot.
      Returns:
      the target angle
    • getTargetDutyCycle

      public double getTargetDutyCycle()
      Gets the target position of the pivot.
      Returns:
      the target percentage of voltage of the intake rollers