Class Indexer

All Implemented Interfaces:
Sendable, Subsystem

public class Indexer extends SubsystemBase
Indexer class
  • Constructor Details

  • Method Details

    • periodic

      public void periodic()
    • setMagazineDutyCycle

      public void setMagazineDutyCycle(double dutyCycle)
    • setSpindexerDutyCycle

      public void setSpindexerDutyCycle(double dutyCycle)
    • setSpeedCommand

      public Command setSpeedCommand(double magazineDutyCycle, double spindexerDutyCycle)
      Parameters:
      magazineDutyCycle - power value from (-1) to 1
      spindexerDutyCycle - power value from (-1) to 1
      Returns:
      command to set speed of indexer and spinner
    • spinWhileIntake

      public Command spinWhileIntake()
      Spin indexer while intaking balls
      Returns:
      Command