robotpy / robotpy-wpilib

Moved to https://github.com/robotpy/mostrobotpy
https://robotpy.github.io
Other
169 stars 59 forks source link

Utility library #6

Closed virtuald closed 9 years ago

virtuald commented 9 years ago

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.

computer-whisperer commented 9 years ago

What utility classes do you have in mind?

virtuald commented 9 years ago

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.

computer-whisperer commented 9 years ago

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.

virtuald commented 9 years ago

Why would it need to be builtin to wpilib? Why not just another package that exists on the robot system?

computer-whisperer commented 9 years ago

I had some ideas of what might use that functionality, but then I realized what a nightmare it would be to debug.

virtuald commented 9 years ago

I've started the package in a public repository, will actually add content in the future.