@@ -38,8 +38,8 @@ documentation <https://docs.python.org/3/>`__ instead of the Python
38382.x documentation.
3939
4040- RobotPy WPILib on the roboRIO uses the latest version of Python 3 at kickoff.
41- In 2023 , this was Python 3.11 . When using pyfrc or similar projects,
42- you should use a Python 3.7 or newer interpreter (the latest is recommended).
41+ In 2024 , this was Python 3.12 . When using pyfrc or similar projects,
42+ you should use a Python 3.8 or newer interpreter (the latest is recommended).
4343- RobotPy 2014.x is based on Python 3.2.5.
4444
4545`pynetworktables <https://github.com/robotpy/pynetworktables >`__ is
@@ -71,15 +71,17 @@ Prior to 2015, the API matched the C++ version of WPILib.
7171Is Command-based programming available?
7272~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7373
74- Of course! Check out the :mod: `commands2 <commands2> ` package. There
75- is also some :ref: `python-specific documentation available <command_framework_docs >`.
74+ Of course! Check out the :mod: `commands2 <commands2> ` package.
7675
77- Is there an easy way to test my code outside of the robot ?
78- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76+ Are Vendor libraries available ?
77+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7978
80- Glad you asked! Our pyfrc project has a built in :ref: `lightweight robot simulator <simulator >`
81- you can use to run your code, and also has builtin support for unit testing
82- with `py.test <http://pytest.org >`_.
79+ We encourage vendors to make Python versions of their libraries available. Since
80+ Python support has only been official since 2024, not all vendors do this. If
81+ you are a vendor, please reach out to our team and we'd be happy to assist.
82+
83+ The RobotPy project also provides unofficial wrappers for vendor libraries that don't
84+ take a lot of effort to create and maintain.
8385
8486Competition
8587-----------
@@ -89,38 +91,14 @@ Competition
8991Is RobotPy competition-legal?
9092~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9193
92- Python is not an official FRC language yet, but we are working with
93- the WPILib team to make it official in 2024. See
94- https://wpilib.org/blog/bringing-python-to-frc for the announcement.
95-
96- As RobotPy was not written by anyone involved with the GDC, we can't
97- provide a guaranteed answer (particularly not for future years).
98- However, we see no reason that RobotPy would not be legal: to the
99- cRIO/RoboRIO, it looks just like any other C++ WPILib-using program that
100- reads text files. RobotPy itself should be considered COTS software as
101- it is freely available to all teams. Teams have been using RobotPy since
102- 2010 without any problems from FIRST, and we expect that to continue.
103-
104- Caveat emptor: while RobotPy is almost certainly legal to use, your team
105- should carefully consider the risk of using such a large piece of
106- unofficial software; unless RobotPy is used by many teams, if you run
107- into trouble at a competition, there may not be anyone else there to
108- help! However, we've found that most problems teams run into are
109- problems with WPILib itself, and not RobotPy.
110-
111- Also, be sure to keep in mind the fact that Python is a dynamic language
112- and is NOT compiled. This means that typos can easily go undetected
113- until your robot runs that particular line of code, resulting in an
114- exception and 5 second restart. Make sure to test your code thoroughly
115- (see our :ref: `unit testing documentation <unit_tests >`).
116-
94+ As of 2024, Python is officially supported for use in FRC.
11795
11896.. _is_stable :
11997
12098Is RobotPy stable?
12199~~~~~~~~~~~~~~~~~~
122100
123- Yes! While Python is not an officially supported language, teams have been
101+ Yes! Teams have been
124102using RobotPy since 2010, and the maintainer of RobotPy is a member of the
125103WPILib team. Much of the time when bugs are found, they are found in the
126104underlying WPILib, instead of RobotPy itself.
0 commit comments