Merge pull request 'PLOC SUPV TM handling' (#293) from ploc-supv-tm-handling into main
All checks were successful
EIVE/-/pipeline/head This commit looks good
All checks were successful
EIVE/-/pipeline/head This commit looks good
Reviewed-on: #293 Reviewed-by: Marius Eggert <eggertm@irs.uni-stuttgart.de>
This commit is contained in:
commit
5da55c3c99
@ -650,8 +650,10 @@ def get_event_buffer_path() -> str:
|
|||||||
class SocState(enum.IntEnum):
|
class SocState(enum.IntEnum):
|
||||||
OFF = 0
|
OFF = 0
|
||||||
BOOTING = 1
|
BOOTING = 1
|
||||||
OPERATIONAL = 2
|
UPDATE = 2
|
||||||
SHUTDOWN = 3
|
OPERATIONAL = 3
|
||||||
|
RESET = 4
|
||||||
|
FAULTY = 5
|
||||||
|
|
||||||
|
|
||||||
def handle_supv_hk_data(set_id: int, hk_data: bytes, pw: PrintWrapper):
|
def handle_supv_hk_data(set_id: int, hk_data: bytes, pw: PrintWrapper):
|
||||||
@ -691,7 +693,10 @@ def handle_hk_report(hk_data: bytes, pw: PrintWrapper):
|
|||||||
pw.dlog(f"Temp PS {temp_ps} C | Temp PL {temp_pl} C | Temp SUP {temp_sup} C")
|
pw.dlog(f"Temp PS {temp_ps} C | Temp PL {temp_pl} C | Temp SUP {temp_sup} C")
|
||||||
pw.dlog(f"Uptime {uptime} | CPU Load {cpu_load} | Avail Heap {avail_heap}")
|
pw.dlog(f"Uptime {uptime} | CPU Load {cpu_load} | Avail Heap {avail_heap}")
|
||||||
pw.dlog(f"Number TCs {num_tcs} | Number TMs {num_tms}")
|
pw.dlog(f"Number TCs {num_tcs} | Number TMs {num_tms}")
|
||||||
pw.dlog(f"SOC state {SocState(soc_state)}")
|
try:
|
||||||
|
pw.dlog(f"SOC state {SocState(soc_state)}")
|
||||||
|
except ValueError:
|
||||||
|
pw.dlog(f"Invalid SOC state {soc_state}")
|
||||||
pw.dlog(f"NVM 01 State {nvm_0_1_state}")
|
pw.dlog(f"NVM 01 State {nvm_0_1_state}")
|
||||||
pw.dlog(f"NVM 3 State {nvm_3_state}")
|
pw.dlog(f"NVM 3 State {nvm_3_state}")
|
||||||
pw.dlog(f"Mission IO state {mission_io_state}")
|
pw.dlog(f"Mission IO state {mission_io_state}")
|
||||||
|
Loading…
Reference in New Issue
Block a user