Class IntakeExtension.IntakeExtensionRight
java.lang.Object
frc.spectrumLib.mechanism.Mechanism
frc.robot.subsystems.intakeExtension.IntakeExtension.IntakeExtensionRight
- All Implemented Interfaces:
Subsystem
- Enclosing class:
- IntakeExtension
Right deploy axis, a standalone
Mechanism rather than a follower so it can be driven
on its own during a resync. Gains, limits, and geometry come from the left config; only the
CAN id, name, and inversion differ, since the right gearbox is mounted mirrored. That keeps
both axes on "positive extends".-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class frc.spectrumLib.mechanism.Mechanism
Mechanism.Config, Mechanism.FollowerConfig, Mechanism.RpmLog -
Field Summary
Fields inherited from class frc.spectrumLib.mechanism.Mechanism
config, followerMotors, motor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddriveHomingVoltage(double volts) Open-loop voltage that ignores soft limits, so homing can reach the hard stop.voidgoToRotations(double rotations) Closed-loop Motion Magic to an absolute rotation target.voidgoToRotationsSlow(double rotations, double cruiseVelocity, double acceleration, double jerk) Dynamic Motion Magic voltage move to a rotation target, using the slow profile.voidperiodic()Called once per scheduler loop.voidsetInitialPosition(double rotations) voidstopAxis()voidMethods 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, getLatencyCompensatedPositionDegrees, getLatencyCompensatedPositionRotations, getMotor, getName, getPositionDegrees, getPositionPercentage, getPositionRotations, getStatorCurrent, getSupplyCurrent, getTarget, getTemp, getVelocityRPM, getVelocityTargetRPS, getVoltage, isAtRotations, isAttached, isAtTargetPosition, isMotorConnected, logBatteryUsage, logDiagnostics, logDiagnostics, logStandard, 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, setPosition, setPositionFocWithVelocity, setPositionWithVelocity, setTorqueCurrentFoc, setVelocity, setVelocityRPM, setVelocityTCFOCrpm, setVelocityTorqueCurrentFOC, setVoltageOutput, setVoltageOutputNoSoftLimit, simulationPeriodic, stop, tareMotor, toggleReverseSoftLimit, toggleSupplyCurrentLimit, toggleTorqueCurrentLimitMethods 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
-
IntakeExtensionRight
-
-
Method Details
-
goToRotations
public void goToRotations(double rotations) Closed-loop Motion Magic to an absolute rotation target. -
goToRotationsSlow
public void goToRotationsSlow(double rotations, double cruiseVelocity, double acceleration, double jerk) Dynamic Motion Magic voltage move to a rotation target, using the slow profile. -
driveHomingVoltage
public void driveHomingVoltage(double volts) Open-loop voltage that ignores soft limits, so homing can reach the hard stop. -
setInitialPosition
public void setInitialPosition(double rotations) -
zeroAtMax
public void zeroAtMax() -
stopAxis
public void stopAxis() -
periodic
public void periodic()Description copied from class:MechanismCalled once per scheduler loop. Subclasses override this for their state machine, telemetry and sensor work. -
getRightConfig
-