Class Hood

All Implemented Interfaces:
Subsystem, SpectrumSubsystem

public class Hood extends Mechanism
  • Constructor Details

  • Method Details

    • periodic

      public void periodic()
      Specified by:
      periodic in interface Subsystem
      Overrides:
      periodic in class Mechanism
    • setupStates

      public void setupStates()
      Description copied from interface: SpectrumSubsystem
      Set up the states and triggers for this subsystem. This is typically used to bind commands to SpectrumState triggers.
    • setupDefaultCommand

      public void setupDefaultCommand()
      Description copied from interface: SpectrumSubsystem
      Set up the default command for this subsystem. This command will run when no other command is using this subsystem.
    • runTorqueFOC

      public Command runTorqueFOC(DoubleSupplier torque)
    • setVoltageAndCurrentLimits

      public void setVoltageAndCurrentLimits(DoubleSupplier voltage, DoubleSupplier supply, DoubleSupplier torque)
    • runVoltageCurrentLimits

      public Command runVoltageCurrentLimits(DoubleSupplier voltage, DoubleSupplier supplyCurrent, DoubleSupplier torqueCurrent)
    • runTCcurrentLimits

      public Command runTCcurrentLimits(DoubleSupplier torqueCurrent, DoubleSupplier supplyCurrent)
    • trackTargetCommand

      public Command trackTargetCommand()
    • moveToDegrees

      public Command moveToDegrees(double degrees)
    • onTheFlyLaunch

      public Command onTheFlyLaunch()
    • runHoldHood

      public Command runHoldHood()
      Holds the position of the Hood.
    • stopMotor

      public Command stopMotor()
    • simulationInit

      public void simulationInit()
    • simulationPeriodic

      public void simulationPeriodic()
      Specified by:
      simulationPeriodic in interface Subsystem
      Overrides:
      simulationPeriodic in class Mechanism
    • getSim

      public frc.robot.hood.Hood.HoodSim getSim()