Class Hood

All Implemented Interfaces:
Subsystem

public class Hood extends Mechanism
The Hood subsystem. Positions the hood that sets the fuel launch angle.
  • Constructor Details

  • Method Details

    • setWantedState

      public void setWantedState(Hood.WantedState state)
    • isZeroed

      public boolean isZeroed()
      The hood has found its bottom stop since boot and its readings show the zero, so its angle can be trusted. Until then it holds in brake and the shot gate holds.
    • getHomingCheckState

      public HomingCheck.State getHomingCheckState()
      The homing state for the pre-match check; the hood homes itself at auto start.
    • periodic

      public void periodic()
      Description copied from class: Mechanism
      Called once per scheduler loop. Concrete subclasses should override to implement their periodic state-machine logic, telemetry, and sensor updates.
      Specified by:
      periodic in interface Subsystem
      Overrides:
      periodic in class Mechanism
    • simulationInit

      public void simulationInit()
    • getShotTargetDegrees

      public double getShotTargetDegrees()
      Hood angle the current shot wants this loop, degrees; NaN when the hood is not on a shot. Computed from logged inputs, so the shot gate that compares it with Mechanism.getPositionDegrees() replays.
    • getConfig

      public Hood.HoodConfig getConfig()
    • getSim

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