Class AutoManager

java.lang.Object
com.marswars.auto.AutoManager

public class AutoManager extends Object
Singleton manager for autonomous routine selection and visualization.
  • Method Details

    • getInstance

      public static AutoManager getInstance()
      Gets the singleton AutoManager instance.
      Returns:
      the AutoManager instance
    • registerAutos

      public void registerAutos(Auto... autos)
      Register multiple auto routines to the chooser
      Parameters:
      autos - Varargs of Auto routines to register
    • periodic

      public void periodic()
      Must be called from robotPeriodic(). Processes any pending auto selection changes outside of SmartDashboard's updateValues() iteration to avoid ConcurrentModificationException.
    • getSelectedAuto

      public Auto getSelectedAuto()
      Get the selected auto routine
      Returns:
      The selected Auto as a command sequence
    • onSelectedAutoChange

      public void onSelectedAutoChange()