Enum Class Feeder.FeederState

java.lang.Object
java.lang.Enum<Feeder.FeederState>
com.stuypulse.robot.subsystems.feeder.Feeder.FeederState
All Implemented Interfaces:
Serializable, Comparable<Feeder.FeederState>, Constable
Enclosing class:
Feeder

public static enum Feeder.FeederState extends Enum<Feeder.FeederState>
Enum representing the different possible states of the feeder.
  • 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
    Motors run forward to feed to the shooter.
    Feeder is stopped.
    Motors run backward to work with the intake to outtake fuel from the robot.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private edu.wpi.first.units.measure.Voltage
    The target voltage of the feeder motors.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    FeederState(edu.wpi.first.units.measure.Voltage targetVoltage)
    Constructs a FeederState with the given target voltage.
  • Method Summary

    Modifier and Type
    Method
    Description
    edu.wpi.first.units.measure.Voltage
    Gets the target voltage of the feeder motors in the corresponding state.
    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

    • targetVoltage

      private edu.wpi.first.units.measure.Voltage targetVoltage
      The target voltage of the feeder motors.
  • Constructor Details

    • FeederState

      private FeederState(edu.wpi.first.units.measure.Voltage targetVoltage)
      Constructs a FeederState with the given target voltage.
      Parameters:
      targetVoltage - the target voltage of the feeder motors in the corresponding state.
  • Method Details

    • values

      public static Feeder.FeederState[] 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 Feeder.FeederState 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
    • getTargetVoltage

      public edu.wpi.first.units.measure.Voltage getTargetVoltage()
      Gets the target voltage of the feeder motors in the corresponding state.
      Returns:
      the target voltage of the feeder motors