Package com.marswars.subsystem
Class SubsystemManager
java.lang.Object
com.marswars.subsystem.SubsystemManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Notifierprotected ArrayList<MwSubsystemBase> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPreform the control loop for all subsystemsvoidregisterSubsystem(MwSubsystemBase system) voidreset()If subsystems all need to be reset before a robot mode change, call this function to cleanly handle resetting them together.
-
Field Details
-
subsystems
-
loopThread
-
log_init
protected boolean log_init -
disabled_subsystems_
-
-
Constructor Details
-
SubsystemManager
-
-
Method Details
-
getEnabledSubsystems
-
registerSubsystem
-
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.
-