Class Hood
java.lang.Object
frc.spectrumLib.mechanism.Mechanism
frc.robot.subsystems.hood.Hood
- All Implemented Interfaces:
Subsystem
The Hood subsystem. Positions the hood that sets the fuel launch angle.
-
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
Modifier and TypeMethodDescriptionThe homing state for the pre-match check; the hood homes itself at auto start.doubleHood angle the current shot wants this loop, degrees; NaN when the hood is not on a shot.frc.robot.subsystems.hood.Hood.HoodSimgetSim()booleanisZeroed()The hood has found its bottom stop since boot and its readings show the zero, so its angle can be trusted.voidperiodic()Called once per scheduler loop.voidsetWantedState(Hood.WantedState state) voidMethods 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
-
Hood
-
-
Method Details
-
setWantedState
-
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
The homing state for the pre-match check; the hood homes itself at auto start. -
periodic
-
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 withMechanism.getPositionDegrees()replays. -
getConfig
-
getSim
public frc.robot.subsystems.hood.Hood.HoodSim getSim()
-