We’re happy to announce the release of RobotPy for 2022!
WPILib 2022.2.1 libraries with most features
Old commands (please stop using it!) and new commands
All supported vendors – CTRE, NavX, PWFusion, Rev, Romi
Everything is very lightly tested, and I’ve only tested the core WPILib stuff on a roboRIO. Try it out, find a bug, file an issue on github!
The documentation and examples have not been updated yet. We would love your help doing that! Please.
Coming soon
Later this season, we will bringing back pytest support for your robot! I’ve definitely missed it, and I think I have an approach that will work (want it to come sooner? Implement #3867 for me!).
Thanks
Thanks as always to @auscompgeek and @TheTripleV for their help getting this season’s release out.
Do not post support requests on this thread
Make a new thread, it’s super easy! I subscribe to the python forum, I’ll see it or someone else will. I will not answer support requests on this thread.
As of pyfrc 2022.0.1, your PhysicsEngine object can accept a second argument to its constructor, and it will be an instance of your robot class. PhysicsEngine is created right after robotInit is called, so you should have access to all of your motors and such. If you run python robot.py create-physics there’s an example that includes this.
pyntcore had issues with values with string arrays, this is fixed as of pyntcore 2022.2.1.2 .
I pushed some RobotPy packages that depend on WPILib 2022.3.1, which depend on a new NI image that hasn’t been released yet. Don’t upgrade RobotPy on your RoboRIO until you’ve upgraded to the (as yet unreleased) NI image, or you’ll get a very strange error.
If you do get this strange error, it is fixable – but hopefully the new NI release will be out soon. Stop by our gitter chat and we can discuss.