Class Launcher
java.lang.Object
frc.spectrumLib.mechanism.Mechanism
frc.robot.subsystems.launcher.Launcher
- All Implemented Interfaces:
Subsystem
The Launcher subsystem. Four-motor flywheel that launches fuel at the hub.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic enumNested classes/interfaces inherited from class Mechanism
Mechanism.Config, Mechanism.FollowerConfig -
Field Summary
Fields inherited from class Mechanism
followerMotors, motor -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Mechanism
aboveCurrent, aboveDegrees, abovePercentage, aboveRotations, aboveVelocityRPM, all, applyCurrentLimit, atCurrent, atDegrees, atPercentage, atRotations, atTargetPosition, atVelocityRPM, belowCurrent, belowDegrees, belowPercentage, belowRotations, belowVelocityRPM, checkAvgCurrent, checkMaxCurrent, checkMinThresholdCurrent, clampToSoftLimits, clearTrackingStop, coastMode, degreesToRotations, ensureBrakeMode, getCurrentCommandName, getFollowerMotors, getInputs, getLatencyCompensatedPositionDegrees, getLatencyCompensatedPositionRotations, getMotor, getName, getPositionDegrees, getPositionDegreesUncached, getPositionPercentage, getPositionRotations, getStatorCurrent, getSupplyCurrent, getTarget, getTemp, getVelocityRPM, getVelocityTargetRPS, getVoltage, hasSoftLimits, isAtRotations, isAttached, isAtTargetPosition, isMotorConnected, isPositionLost, isPositionWritePending, isTrackingStopped, logBatteryUsage, logDiagnostics, logDiagnostics, motorResetThisLoop, moveToDegrees, moveToPercentage, moveToRotations, percentToRotations, refreshSignalsOncePerLoop, rotationsToDegrees, rotationsToPercent, runCurrentLimits, runFocRotations, runningDefaultCommand, runPercentage, runStop, runTorqueCurrentFoc, runVelocity, runVelocityTcFocRPM, runVoltage, runVoltageNoSoftLimit, setBrakeMode, setCurrentLimits, setDynMMPositionFoc, setDynMMPositionVoltage, setMMPosition, setMMPosition, setMMPositionFoc, setMMVelocityFOC, setMotorPosition, setPercentOutput, setPosition, setPositionFocWithVelocity, setPositionWithVelocity, setTorqueCurrentFoc, setVelocity, setVelocityRPM, setVelocityTCFOCrpm, setVelocityTorqueCurrentFOC, setVoltageOutput, setVoltageOutputNoSoftLimit, simulateReboot, simulationPeriodic, softLimitsNeedReboot, stop, tareMotor, toggleReverseSoftLimit, toggleSupplyCurrentLimit, toggleTorqueCurrentLimit, updateInputsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, startEnd, startRun
-
Constructor Details
-
Launcher
-
-
Method Details
-
setWantedState
-
periodic
-
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 withMechanism.getVelocityRPM()replays. -
getConfig
-
getSim
public frc.robot.subsystems.launcher.Launcher.LauncherSim getSim()
-