Skip to content

Commands

Alex Schokking edited this page Jul 10, 2025 · 13 revisions

Command State Machine

When a command is kicked off (for example, by a controller button, or being run in a command group, etc.) it runs through its code in the following state machine:

flowchart TD
    s[[start]]--> i["initialize()"]
    i --> e 
    if{"boolean isFinished()"} -->|false| e["execute()"]
    e --> if
    if --> |true|en["end(boolean isInterrupted)"]
    en-->d[[done]]
Loading

Clone this wiki locally