Class IndexerMotor

All Implemented Interfaces:
Motor, MotorIO

public class IndexerMotor extends AbstractVelocityMotor<MotorConfig>
SparkMax-backed indexer motor configured from the indexer subsystem config.

Inherits coast-mode idle, gearing, live-tunable configuration, and telemetry from AbstractVelocityMotor. The roller spins continuously in both directions, so soft limits are typically not used.

  • Method Details

    • create

      public static IndexerMotor create(MotorConfig config)
      Creates an indexer motor wrapper using values from the indexer motor config.

      Use this factory so AbstractMotor.init() is always called after config assignment.

      Parameters:
      config - indexer motor configuration containing CAN ID, gear ratio, inversion, and current limits
      Returns:
      configured indexer motor wrapper