SouthEugeneRoboticsTeam / sertain

Framework for programming FRC robots, inspired by Sertain Legacy and Meanlib
6 stars 0 forks source link

Adapt inputs to EventBus #16

Open gnawinganimal opened 5 years ago

gnawinganimal commented 5 years ago

Sertain has a handy dandy event bus. It might be nice to adapt input devices and OI controls to these events

onClick(button) {
    // Code to run on button click
}

(It would be nicer to use button as the receiver, but that space is occupied by CoroutineScope unfortunately. This allows the subscription to be canceled with the parent coroutine.)

gnawinganimal commented 4 years ago

See #31. Not quite done, but getting there.

gnawinganimal commented 4 years ago

Made progress with #35. The system isn't entirely flawless, though, so this issue is still up.

gnawinganimal commented 4 years ago

There are some issues with the inputs. @solidstatebird said that they don't work at all. For now we are using wpilib.

gnawinganimal commented 4 years ago

At this point I don't think this is going to benefit us at all. The wpilib joysticks combined with the ObservableValue are working really well.