Quote:
Originally Posted by Jeanne Boyarsky
Dustin,
Thanks for sharing this. I was hoping there was an easier way to do it of course, but knowing one team did this implies there is not. Have you considered contributing your library of stubs to the existing Python libraries (or packaging it separately) so other teams can use it? I think that is going to prove even more valuable than your "real code"
Jeanne
|
I think I'm going to release it all together [real + stubs + test harness] for the moment, since it's pretty specific to our team's robot right now. And the other thing too -- it's not like it's particularly hard to do this stuff once you have a good idea how to implement it. I think it took me 3 hours total to write the test harness/fake wpilib and such.
In the past I made a more full-featured test harness for WPILib/C++, but I haven't really been motivated to do that for python yet. Maybe I'll play with PyQT at some point.