NOTE: This documentation is old and will be updated when the robot code is more stable
Developmental robot code that will hopefully be used in competition
External Software
It is recommended to develop using Windows 10/11, since as of 1/25/2024 there is no native MacOS support for FRC Game Tools/Radio Configuration
- WPILib (Not needed for python development)
- Click here for a more extensive list of software
- Miniconda
- NOTE: If Anaconda is already on your system, miniconda is not needed!
NOTE: You can also use python's built in 'venv' library to create a virtual environment to test your code, but conda is a neater option IMO
To setup this code on your computer for development, follow the steps below:
Windows/MacOS/Unix/GNU (USING ANACONDA)
- Make sure all software is downloaded and installed (check "External software")
- Clone the repository
- If you are in Windows, open Anaconda Powershell Prompt (Any terminal should be fine for Linux and Mac users) and navigate to the parent directory in which the repository is stored on your local machine
- Build a new conda environment for robotpy using the commands below:
conda env create -n WPILib
conda activate WPILib
conda install pip
pip install robotpy
robotpy sync
You can customize what specific tests you want to run in tests/pyfrc_test.py. (located in the directory of your repository)
To run tests, go the the working directory of your robot code in anaconda powershell and run clear; robotpy test
To whoever it may concern, I advise you to go follow the most recent RobotPy documentation for running and testing robot code on your local machine, as they will probably update it faster than I can update this README.