Class IntakeExtension.IntakeExtensionRight

java.lang.Object
frc.spectrumLib.mechanism.Mechanism
frc.robot.subsystems.intakeExtension.IntakeExtension.IntakeExtensionRight
All Implemented Interfaces:
Subsystem
Enclosing class:
IntakeExtension

public static class IntakeExtension.IntakeExtensionRight extends Mechanism
The right deploy axis. A standalone Mechanism (not a follower) so it can be driven independently of the left during a resync. Gains, limits, and geometry mirror the left config; only the CAN id, name, and motor inversion differ (the right gearbox is mirrored, so it is CounterClockwise_Positive where the left is Clockwise_Positive, giving both axes the same "positive = extend" convention).
  • Constructor Details

  • 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)
      Slow (dynamic Motion Magic voltage) move to a rotation target.
    • driveHomingVoltage

      public void driveHomingVoltage(double volts)
      Open-loop voltage that bypasses soft limits. Used to drive into the hard stop.
    • setInitialPosition

      public void setInitialPosition(double rotations)
      Seeds this axis's encoder to a known starting position (rotations).
    • zeroAtMax

      public void zeroAtMax()
      Re-zeroes this axis at the fully-extended hard stop.
    • stopAxis

      public void stopAxis()
      Holds the axis (neutral output).
    • periodic

      public void periodic()
      Description copied from class: Mechanism
      Called once per scheduler loop. Concrete subclasses should override to implement their periodic state-machine logic, telemetry, and sensor updates.
      Specified by:
      periodic in interface Subsystem
      Overrides:
      periodic in class Mechanism
    • getRightConfig