sertain / sertain-legacy

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

Add subsystem class #28

Closed andrewda closed 6 years ago

andrewda commented 6 years ago

We should at least allow for something like:

fun defaultCommand = ArcadeDrive().start()

instead of WPILib's

override fun initDefaultCommand() {
    ArcadeDrive().start()
}
SUPERCILEX commented 6 years ago

@andrewda That's actually my mistake. WPILib already has the setDefaultCommand(...) method which is what we should be using anyway.

andrewda commented 6 years ago

How about automatically extending RobotLifecycle from the subsystem class so we don't have to do it with every new subsystem?

SUPERCILEX commented 6 years ago

Oh, good idea!