Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/northeastern-electric-racing/nero
GUI for the car written in Python
https://github.com/northeastern-electric-racing/nero
Last synced: 26 days ago
JSON representation
GUI for the car written in Python
- Host: GitHub
- URL: https://github.com/northeastern-electric-racing/nero
- Owner: Northeastern-Electric-Racing
- Created: 2023-01-08T20:51:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T03:00:25.000Z (about 1 year ago)
- Last Synced: 2023-12-01T03:24:34.140Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 2.99 MB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NERO
## Getting Started
This section will take you through setting up the project, running the project, then learning about the libraries we use for the GUI.
### Setting up the project
Installing Python:
1. https://www.python.org/downloads/
2. you're done when you can run `python3` in your terminal and it works
3. make sure you have the most recent versionInstalling Git Submodule
1. `git submodule update --init`
Installing dependencies:
installing Python should come with pip3, so in your terminal you can do:
1. `pip3 install venv` <-- (only do if you haven't installed venv already)
2. `virtualenv venv` <-- (only do if the venv folder doesn't exist already)
3. `source venv/bin/activate`
4. `pip install -r requirements.txt`### Running the project
You can click the play button in VSCode when you're in the `main.py` file or you can do:
1. `source venv/bin/activate`
2. `python3 main.py`### Dev Inputs
Increment Mode -> Right Arrow
Decrement Mode -> Left Arrow
Increment Page -> Right Shift
Debug Mode -> Left Shift
Up -> Up Arrow
Down -> Down Arrow
Enter -> Enter KeyNotes:
- Enter on the plot page changes the time frame
- Press up and down on the debug table to move between values, press enter to select one for plotting
- You may have to brew install python-tk if on mac or linux if you get a _tkinter module not found error
- You may have to install requirements on your machine if virtualenv is not working### Learning
We use CustomTkinter which is a more modern version of Tkinter.
The link to the repo is here: https://github.com/TomSchimansky/CustomTkinter
Their docs are here and are very good: https://github.com/TomSchimansky/CustomTkinter/wiki
It is all based on Tkinter, so if these docs don't explain it then the Tkinter docs will somewhere.
### Installing New Dependencies
1. `source venv/bin/activate`
2. `pip3 install NEW_DEPENDENCY`
3. `pip3 freeze > requirements.txt`Then commit the new requirements.txt which should have added lines for the new package you're installing and any of its dependencies.