Skip to content

The Drop Bears' robot code for FIRST Infinite Recharge (FRC 2020-2021).

License

Notifications You must be signed in to change notification settings

thedropbears/pyinfiniterecharge

Repository files navigation

pyinfiniterecharge

Code style: black

The Drop Bears' robot code for FIRST Infinite Recharge (FRC 2020-2021).

Install dependencies

On a computer:

pip3 install -r requirements-sim.txt

For the roboRIO:

# Online:
robotpy-installer download-python
robotpy-installer download -r requirements.txt

# On the robot network:
robotpy-installer install-python
robotpy-installer install -r requirements.txt

Code style

This codebase adheres to the code style enforced by the black autoformatter:

black .

This is enforced by CI. To install this:

pip3 install black

See PEP 8 on naming conventions.

Docstrings should follow Google style. See also PEP 257.

Checks

Install the linters we're using with:

pip3 install -r requirements-lint.txt

Ensure code passes pyflakes, a static analysis checker:

pyflakes .

This is enforced by CI.

Run

Simulation (desktop)

./robot.py sim

Deploy to robot

./robot.py deploy

This project is configured to automatically deploy to 4774's robot.

About

The Drop Bears' robot code for FIRST Infinite Recharge (FRC 2020-2021).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages