albertaloop / T_SWE_2022_2023

Software for AlbertaLoop's first-generation pod.
MIT License
3 stars 0 forks source link

GUI front end - highlight current state icons #9

Closed Iyury1 closed 1 year ago

Iyury1 commented 2 years ago

Summary

In https://github.com/albertaloop/T_SWE_2022_2023/tree/GUI/main, our current UI was generated from the QTDesigner file "AlbertaLoop_UI2.ui" to the python file "AlbertaLoop_UI2.py". The python file "main2.py" is the entry point for the back end of the GUI.

After running "main2.py" you should see a window like this:

Capture

In the middle of the window are labels which represent the current state of the pod. One label should be colored at a time depending on the reported state from the pod. The labels should follow this color scheme:

Fault : red Safe to approach : light blue Ready to Launch : green Launch : green Coasting : green Braking : yellow Crawling : yellow

In "main2.py" there is a class MWindowWrapper which inherits from Ui_MainWindow which is declared in "AlbertaLoop_UI2.py". We will need to add methods to MWindowWrapper to complete this task.

Acceptance Criteria