This is a test of our 2025 code converted to python, to check for performance issues and to determine if Python is viable for us to switch to.
Clone this repository:
git clone https://github.com/FRC-Team3484/X25_PythonTest
cd X25_PythonTestCreate a virtual environment:
python -m venv .venvActivate it:
source ./.venv/bin/activateInstall the dependencies:
pip install -r requirements.txtVSCode tasks are included for many of the below terminal commands. You can run them by opening the command prompt (Ctrl+Shift+P) and then run Run Task > (command).
Sync additional dependencies found in pyproject.toml:
robotpy syncYou shouldn't have to do this, as we're using pip and a requirements file here. If a new dependency is added in pyproject.toml, however, this command should be run, and then the requirements.py
Deploy robot code on the robot:
robotpy deployRun code tests on your local machine. Use this to test potential issues with robot code before finishing your implementation
robotpy test