sertain / sertain-legacy

:robot: Write more for your robot with less
https://sertain.github.io/javadocs
MIT License
9 stars 3 forks source link

Fix listeners #56

Closed gnawinganimal closed 5 years ago

gnawinganimal commented 5 years ago

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.

andrewda commented 5 years ago

@Jamdan2 Did you get a chance to test this more on Thursday? Is it working?

gnawinganimal commented 5 years ago

Tested it on thursday, it works 👌