Package frc.robot.intakeExtension
Class IntakeExtension
java.lang.Object
frc.spectrumLib.mechanism.Mechanism
frc.robot.intakeExtension.IntakeExtension
- All Implemented Interfaces:
Subsystem,SpectrumSubsystem
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class frc.spectrumLib.mechanism.Mechanism
Mechanism.Config, Mechanism.FollowerConfig -
Field Summary
Fields inherited from class frc.spectrumLib.mechanism.Mechanism
followerMotors, motor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfrc.robot.intakeExtension.IntakeExtension.IntakeExtensionSimgetSim()motionMagicPercentMove(DoubleSupplier percent) move(DoubleSupplier rotations) voidperiodic()voidHolds the position of the Intake Extension.voidSet up the default command for this subsystem.voidSet up the states and triggers for this subsystem.voidslowMoveToPercent(DoubleSupplier percent) Methods inherited from class frc.spectrumLib.mechanism.Mechanism
aboveCurrent, aboveDegrees, abovePercentage, aboveRotations, aboveVelocityRPM, applyCurrentLimit, atCurrent, atDegrees, atPercentage, atRotations, atTargetPosition, atVelocityRPM, belowCurrent, belowDegrees, belowPercentage, belowRotations, belowVelocityRPM, checkAvgCurrent, checkMaxCurrent, checkMinThresholdCurrent, coastMode, degreesToRotations, ensureBrakeMode, getCurrentCommandName, getFollowerMotors, getMotor, getName, getPositionDegrees, getPositionPercentage, getPositionRotations, getStatorCurrent, getSupplyCurrent, getTarget, getTemp, getVelocityRPM, getVoltage, isAttached, logBatteryUsage, moveToDegrees, moveToPercentage, moveToRotations, percentToRotations, rotationsToDegrees, rotationsToPercent, runCurrentLimits, runFocRotations, runningDefaultCommand, runPercentage, runStop, runTorqueCurrentFoc, runVelocity, runVelocityTcFocRPM, runVoltage, runVoltageNoSoftLimit, setBrakeMode, setCurrentLimits, setDynMMPositionFoc, setDynMMPositionVoltage, setMMPosition, setMMPosition, setMMPositionFoc, setMMVelocityFOC, setMotorPosition, setPercentOutput, setTorqueCurrentFoc, setVelocity, setVelocityTCFOCrpm, setVelocityTorqueCurrentFOC, setVoltageOutput, setVoltageOutputNoSoftLimit, stop, tareMotor, toggleReverseSoftLimit, toggleSupplyCurrentLimit, toggleTorqueCurrentLimit, updateStatorCurrent, updateSupplyCurrent, updateTemp, updateVoltageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, startEnd, startRun
-
Constructor Details
-
IntakeExtension
-
-
Method Details
-
periodic
public void periodic() -
setupStates
public void setupStates()Description copied from interface:SpectrumSubsystemSet 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:SpectrumSubsystemSet up the default command for this subsystem. This command will run when no other command is using this subsystem. -
resetCurrentPositionToMax
public void resetCurrentPositionToMax() -
resetToInitialPos
-
runHoldIntakeExtension
Holds the position of the Intake Extension. -
move
-
motionMagicPercentMove
-
slowMoveToPercent
-
simulationPeriodic
public void simulationPeriodic()- Specified by:
simulationPeriodicin interfaceSubsystem- Overrides:
simulationPeriodicin classMechanism
-
getConfig
-
getSim
public frc.robot.intakeExtension.IntakeExtension.IntakeExtensionSim getSim()
-