Update the TankController
code from C++ to Python and run on a Raspberry Pico.
To set up and run this project, the system must meet the following requirements:
- Python: The project requires Python to run. Python provides the runtime for the scripts and the GUI components.
- pip: Python's package installer is needed to install and manage dependencies.
- pipenv: Used for managing project dependencies and creating isolated virtual environments.
- Tkinter: Required for the GUI components of the application. Tkinter comes with Python (as
python3-tk
) and is used to build and display the UI.
Test Python version:
python -V
This command prints the installed Python version.
Upgrade pip:
pip install --upgrade pip
pip --version
The first command upgrades pip to the latest version, and the second verifies the installed version.
Install pipenv (tool for dependencies and virtual environments):
pip install pipenv
pipenv --version
pipenv install
This installs or updates all dependencies defined in the Pipfile and updates the Pipfile.lock.
Verify Tkinter installation:
python -m tkinter
A small GUI window should appear if Tkinter is installed correctly.
To run in a local environment with mocked devices (with the UI State Machine integrated)
./run_gui.sh
Run pipenv install
in the terminal to get the latest dependencies and update the lockfile.
python3 -m venv .venv
source .venv/bin/activate
pip3 install --user pipenv
To perform Pytest tests for the devices and UI states.
./test.sh
Thanks goes to these wonderful people (emoji key):
Kaden Sukachevin 💻 📖 🐛 |
Preston Carman 💻 🐛 |
Konrad McClure 💻 |
Noah-Griffith 💻 |
Barun Debnath 💻 |
Kieran Sukachevin |
Josh Soref 💻 |
TaylorSmith28 |
This project follows the all-contributors specification. Contributions of any kind welcome!