setState

open fun setState(newState: MagicSubsystem.State)

Called to set the state of the system. This changes the stateInterval and resets it, and also calls onStateSwitched, which you should override unless you have a good idea what you're doing.

Parameters

newState