-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use livesteam gui as pilot gui #188
Conversation
Move flood warning to operator and add alarm sound :)
Oops I'm logged in as Michael |
src/surface/gui/gui/operator_app.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the IP & Heartbeat widgets to the main tab as well as the temp sensor in main
It'd be cool if they were still there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oop
src/surface/gui/gui/pilot_app.py
Outdated
@@ -141,16 +145,27 @@ def __init__(self) -> None: | |||
main_layout.addLayout(video_layout) | |||
main_layout.addLayout(make_bottom_bar()) | |||
|
|||
def show_on_monitor(self, monitor_id: int) -> None: | |||
def apply_monitor_config(self, gui_id: str) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make gui_id
an enum
src/surface/gui/gui/pilot_app.py
Outdated
TWO_MONITOR_CONFIG = {GuiType.PILOT: None, GuiType.LIVESTREAM: 1} | ||
THREE_MONITOR_CONFIG = {GuiType.PILOT: 2, GuiType.LIVESTREAM: 1} | ||
|
||
|
||
def make_bottom_bar() -> QHBoxLayout: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add docstring and move into PilotApp
def show_on_monitor(self, monitor_id: int) -> None: | ||
self.apply_monitor_config(gui_type) | ||
|
||
def apply_monitor_config(self, gui_type: GuiType) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add docstring
Co-authored-by: Benjamin Poulin <90342856+benjaminwp18@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Use livestream gui for pilot gui and move flood warning to operator gui. Add fun surprise to flood warning :)