Skip to content

ApesofWrath/Python-Robot

Repository files navigation

Python-Robot

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

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

Setup

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

Running/Testing/Deploying

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.

About

Developmental Python Code for our Robot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages