This just fixes some stuff about the listeners. First, it fixes an internal bug which would cause some lifecycle methods to get called at the wrong time. It also adds public api, so now any lifecycle can be added with either add(lifecycle) or +lifecycle. Lastly, instead of accepting only Subsystems, the Robot class's constructor now accepts all RobotLifecycle types.
This just fixes some stuff about the listeners. First, it fixes an internal bug which would cause some lifecycle methods to get called at the wrong time. It also adds public api, so now any lifecycle can be added with either
add(lifecycle)
or+lifecycle
. Lastly, instead of accepting only Subsystems, the Robot class's constructor now accepts allRobotLifecycle
types.