Skip to content

Commit

Permalink
Update GUI.py
Browse files Browse the repository at this point in the history
Fixing HRS software mode to map to a decoded value rather than just show a number
  • Loading branch information
ISS-Mimic authored Dec 4, 2024
1 parent 0038746 commit a5c53a1
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Pi/GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -4059,8 +4059,23 @@ def cross(a,b):
self.tcs_screen.ids.ptrrj_value.text = ptrrj + "deg"
self.tcs_screen.ids.strrj_value.text = strrj + "deg"

self.tcs_screen.ids.SWmode_loopA.text = str(SWmode_loopA)
self.tcs_screen.ids.SWmode_loopB.text = str(SWmode_loopB)
SW_MODE_MAP = {
1: "STANDBY",
2: "RESTART",
3: "CHECKOUT",
4: "DIRECTED POS",
5: "AUTOTRACK",
6: "BLIND",
7: "SHUTDOWN",
8: "SWITCHOVER"
}

self.tcs_screen.ids.SWmode_loopA.text = SW_MODE_MAP.get(SWmode_loopA, "UNKNOWN")
self.tcs_screen.ids.SWmode_loopB.text = SW_MODE_MAP.get(SWmode_loopB, "UNKNOWN")


#self.tcs_screen.ids.SWmode_loopA.text = str(SWmode_loopA)
#self.tcs_screen.ids.SWmode_loopB.text = str(SWmode_loopB)
self.tcs_screen.ids.NH3flow_loopA.text = str(NH3flow_loopA)
self.tcs_screen.ids.NH3flow_loopB.text = str(NH3flow_loopB)
self.tcs_screen.ids.NH3outletPress_loopA.text = str(NH3outletPress_loopA)
Expand Down

0 comments on commit a5c53a1

Please sign in to comment.