I committed outstanding changes to the base SUS guardian module:
USERAPPS/sus/common/guardian/SUS.py
The SUS.py from sus/l1/guardian was copied to sus/common/guardian, and a couple of improvements to the code were then made:
-
added more sophistication to INIT state to check for the current alignment status, and move to the ALIGNED state if relevant. No distinction between aligned and misaligned state yet, though.
-
built-in userapps_path function is used to find alignment offsets burt files
-
Add missing turning on of damping outputs in DAMPED state.
-
log and notification cleanups
Outstanding tasks:
-
Make the INIT state smarter. It currently identifies that the alignment offsets and master switch are on, but it doesn't actually look at the alignment settings to determine if they correspond to aligned or misaligned.
-
Arnaud is adding direct transitions between the ALIGNED and MISALIGNED states.