Package frc.robot.indexerTower
Class IndexerTower
java.lang.Object
frc.spectrumLib.mechanism.Mechanism
frc.robot.indexerTower.IndexerTower
- All Implemented Interfaces:
edu.wpi.first.networktables.NTSendable,edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.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 TypeMethodDescriptionvoidinitSendable(edu.wpi.first.networktables.NTSendableBuilder builder) voidperiodic()edu.wpi.first.wpilibj2.command.CommandrunTCcurrentLimits(DoubleSupplier torqueCurrent, DoubleSupplier supplyCurrent) edu.wpi.first.wpilibj2.command.CommandrunTorqueFOC(DoubleSupplier torque) edu.wpi.first.wpilibj2.command.CommandrunVoltageCurrentLimits(DoubleSupplier voltage, DoubleSupplier supplyCurrent, DoubleSupplier torqueCurrent) voidSet up the default command for this subsystem.voidSet up the states and triggers for this subsystem.voidsetVoltageAndCurrentLimits(DoubleSupplier voltage, DoubleSupplier supply, DoubleSupplier torque) voidvoidedu.wpi.first.wpilibj2.command.CommandMethods 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, getTarget, getVelocityRPM, getVoltage, isAttached, moveToDegrees, moveToPercentage, moveToRotations, percentToRotations, rotationsToDegrees, rotationsToPercent, runCurrentLimits, runFocRotations, runningDefaultCommand, runPercentage, runStop, runTorqueCurrentFoc, runVelocity, runVelocityTcFocRpm, runVoltage, setBrakeMode, setCurrentLimits, setDynMMPositionFoc, setMMPosition, setMMPosition, setMMPositionFoc, setMMVelocityFOC, setMotorPosition, setPercentOutput, setTorqueCurrentFoc, setVelocity, setVelocityTCFOCrpm, setVelocityTorqueCurrentFOC, setVoltageOutput, stop, tareMotor, telemetryInit, toggleReverseSoftLimit, toggleSupplyCurrentLimit, toggleTorqueCurrentLimit, updateCurrent, updateVoltageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.networktables.NTSendable
initSendableMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, startEnd, startRun
-
Constructor Details
-
IndexerTower
-
-
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. -
initSendable
public void initSendable(edu.wpi.first.networktables.NTSendableBuilder builder) - Specified by:
initSendablein interfaceedu.wpi.first.networktables.NTSendable- Overrides:
initSendablein classMechanism
-
runTorqueFOC
-
setVoltageAndCurrentLimits
public void setVoltageAndCurrentLimits(DoubleSupplier voltage, DoubleSupplier supply, DoubleSupplier torque) -
runVoltageCurrentLimits
public edu.wpi.first.wpilibj2.command.Command runVoltageCurrentLimits(DoubleSupplier voltage, DoubleSupplier supplyCurrent, DoubleSupplier torqueCurrent) -
runTCcurrentLimits
public edu.wpi.first.wpilibj2.command.Command runTCcurrentLimits(DoubleSupplier torqueCurrent, DoubleSupplier supplyCurrent) -
stopMotor
public edu.wpi.first.wpilibj2.command.Command stopMotor() -
simulationInit
public void simulationInit() -
simulationPeriodic
public void simulationPeriodic()- Specified by:
simulationPeriodicin interfaceedu.wpi.first.wpilibj2.command.Subsystem- Overrides:
simulationPeriodicin classMechanism
-