Class FlywheelConstants

java.lang.Object
frc.robot.util.tunable.FlywheelConstants
All Implemented Interfaces:
Tunable, Cloneable, org.littletonrobotics.junction.inputs.LoggableInputs

public class FlywheelConstants extends Object implements org.littletonrobotics.junction.inputs.LoggableInputs, Cloneable, Tunable
Constants for shooter flywheel
  • Field Details

    • holdCurrent

      public double holdCurrent
    • maxDutyCycle

      public double maxDutyCycle
    • isReversed

      public boolean isReversed
    • velocityTolerance

      public double velocityTolerance
    • atSpeedDebounce

      public double atSpeedDebounce
  • Constructor Details

    • FlywheelConstants

      public FlywheelConstants(double holdCurrent, double maxDutyCycle, boolean isReversed, double velocityTolerance, double atSpeedDebounce)
      Create new Flywheel Constants
  • Method Details

    • ifDirty

      public void ifDirty(Consumer<FlywheelConstants> consumer)
      Run function with constants if they've changed.
    • toLog

      public void toLog(org.littletonrobotics.junction.LogTable table)
      Specified by:
      toLog in interface org.littletonrobotics.junction.inputs.LoggableInputs
    • fromLog

      public void fromLog(org.littletonrobotics.junction.LogTable table)
      Specified by:
      fromLog in interface org.littletonrobotics.junction.inputs.LoggableInputs