VorTX command structure
At VorTX we use Command Based Programming a paradigm(think template) made for First Robotics the way it works
is we break the robot’s files into 2 main parts
base commands
These commands that only use 1 subsystem. For example, move elevator to level 2. Put these commands directly into their respective subsystems.
multi-subsystem commands
These are commands that use base commands from different subsystems. For example, score on level two of the reef. Put these in the command factory file and group them together using either parallel command or sequential command group.
complex commands
These are commands that require more intricate logic. For example, auto-align to an apriltag. Put these in their own file and override the initialize/execute/interrupted/end fields with your code.