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
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".
  • 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)
      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: Mechanism
      Called once per scheduler loop. Subclasses override this for their state machine, telemetry and sensor work.
      Specified by:
      periodic in interface Subsystem
      Overrides:
      periodic in class Mechanism
    • getRightConfig