Class Launcher

java.lang.Object
frc.spectrumLib.mechanism.Mechanism
frc.robot.subsystems.launcher.Launcher
All Implemented Interfaces:
Subsystem

public class Launcher extends Mechanism
The Launcher subsystem. Four-motor flywheel that launches fuel at the hub.
  • Constructor Details

  • Method Details

    • setWantedState

      public void setWantedState(Launcher.WantedState state)
    • 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()
    • getShotTargetRPM

      public double getShotTargetRPM()
      Flywheel speed the current shot wants this loop, RPM; 0 when the flywheel is not on a shot. Computed from logged inputs (the shot solution), never read back from the motor, so the shot gate that compares it with Mechanism.getVelocityRPM() replays.
    • getConfig

      public Launcher.LauncherConfig getConfig()
    • getSim

      public frc.robot.subsystems.launcher.Launcher.LauncherSim getSim()