This repo contains the source code for the hybrid engine ground system UI
- (Only required if working on UI) Follow steps on InSpace wiki to apply for Qt educational license and install Qt tools https://imaginary-fennel-36b.notion.site/PyQt-9af8dcdfb79d4bae98e3848670bb9994
- Create a Python virtual environment
python -m venv <virtual environment name>
- Activate the virtual environment
- On Windows: Run
.\<venv directory>\Scripts\Activate.ps1
. Note that you made need modify your machines execution policy if on Windows 11. To do so, runSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
- On Linux/Mac: Run
source <venv directory>\bin\activate
- On Windows: Run
- Install the required dependencies by running
pip install -r requirements.txt
This application can be run either from the command line or in the Qt creator application. To run this application from the command line run python widget.py
Here's a quick breakdown of the files and directories of this project
logos
- Directory containing pngs of the CUInspace Avionics logoTheColdHasFlown.xlsx
- Excel sheet containing propulsion cold flow dataform.ui
- An XML-like document that we can use with Qt Creator to manually edit the UI. Do not attempt to manually edit this filehybrid-engine-ui.pyproject
- Files generated by Qt creator that contain metadata about the project. Do not attempt to manually edit these filespacket_spec.py
- A Python file containing dataclasses representing the hybrid packet spec. It also contains functions for parsing data packets/datagrams into those dataclassesui_form.py
- The "compiled" version ofform.ui
. This is the Python code that actually creates the user interface. This is created when running the project within Qt Creator but it can also be created by runningpyside6-uic form.ui -o ui_form.py
. Do not attempt to manually edit this filewidget.py
- The Python code that launches the UI and acts as the entry point to the applicationresources.qrc
- A file containing information about any resource files used in the UI. This is primarily used for adding images to the project and should only be modified within Qt Creator. Do not attempt to manually edit this filerc_resources.py
- The "compiled" version ofrc_resources.py
. This is the python code that helps to render any resources. Do not attempt to manually edit this file