Class SubsystemManager

java.lang.Object
com.marswars.subsystem.SubsystemManager

public abstract class SubsystemManager extends Object
  • Field Details

    • subsystems

      protected ArrayList<MwSubsystemBase> subsystems
    • loopThread

      protected Notifier loopThread
    • log_init

      protected boolean log_init
    • disabled_subsystems_

      protected static List<String> disabled_subsystems_
  • Constructor Details

    • SubsystemManager

      public SubsystemManager(Object build_constants)
  • Method Details

    • getEnabledSubsystems

      public static List<String> getEnabledSubsystems()
    • registerSubsystem

      public void registerSubsystem(MwSubsystemBase system)
    • doControlLoop

      public void doControlLoop()
      Preform the control loop for all subsystems
    • reset

      public void reset()
      If subsystems all need to be reset before a robot mode change, call this function to cleanly handle resetting them together. If only one subsystem needs to be reset, that can be accessed through the getInstance method.