Quote:
Originally Posted by Peter Johnson
This sounds very similar to the approach we took for Team 294's Python robot code for the 2013 competition: https://github.com/team294/FRC2013.
While we started by splitting the teleop code amongst the various subsystems, we found this was somewhat error-prone due to e.g. joystick button mapping being spread around in a lot of different places, so we ended up consolidating all of the teleop code into one file, having it call into the subsystem interfaces. We reused the subsystem interfaces in our autonomous code.
|
Thanks. My idea was to have little/no code in the main robot class. I wanted to do something like the command base in java without all the bloat.
I see from your signature you were one of the creators of robotpy. I am a linux user and python is the latest language in my arsenal. I have not been able to successfully setup a test environment for robotpy using fake_wpilib.
If you know of a tutorial that would be awesome.