commander preflight checks: new structure using events interface

- Reporter class that keeps track of results (list of events + whether
  arming is possible + health).
  And only reports when one or more checks change.
This commit is contained in:
Beat Küng
2022-08-25 22:02:15 -04:00
committed by Daniel Agar
parent 04f7df3848
commit 07afcf4586
9 changed files with 1033 additions and 2 deletions
+2
View File
@@ -25,6 +25,8 @@ class JsonOutput():
event_obj = {}
event_obj['name'] = e.name
event_obj['message'] = e.message
if e.type is not None:
event_obj['type'] = e.type
if e.description is not None:
event_obj['description'] = e.description
args = []