Closed virtuald closed 9 years ago
What utility classes do you have in mind?
The stuff in this directory: https://github.com/frc1418/2014/tree/master/robot/robot/src/common (the autonomous thing enables simple autonomous state machines like this)
And this file (need to refactor): https://github.com/frc1418/2014/blob/master/robot/robot/src/autonomous/__init__.py
... and I think that's it for now. There's some stuff from previous years too I need to dig through. But, I can imagine other people having useful utility code that would be useful to contribute.
I was thinking about what a wpilib expansion API could do for stuff like this. Something that could, with an import statement, automatically integrate libraries like that state machine into the standard robot class. If it was built right, it would mean minimal code addition to the wpilib tree, while allowing easy drop-in extensions to it.
Why would it need to be builtin to wpilib? Why not just another package that exists on the robot system?
I had some ideas of what might use that functionality, but then I realized what a nightmare it would be to debug.
I've started the package in a public repository, will actually add content in the future.
I've got a bunch of utility classes that I've been meaning to make easy to install on the Robot. Now might be a good time to collect these sorts of things and make it easy.