I updated the Pcal guardian code based on the preparation report from Jinshui Tian and Yuli Liang.
We incorporated the minor improvements discussed so far.
A detailed report will follow.
I updated the Pcal guardian code based on the preparation report from Jinshui Tian and Yuli Liang.
We incorporated the minor improvements discussed so far.
A detailed report will follow.
Due to some remaining issues with the previous Pcal Guardian system, we have now updated the Pcal Guardian code to address these issues. The specific details are as follows:
Issue 1: Swap the order of HIGH_POWER and HIGH_POWER_RX_MON.
Before: INCREASE_OFFSET → HIGH_POWER_RX_MON → HIGH_POWER ⇄ WAITING_IFO HIGH_POWER_RX_MON → DECREASE_OFFSET HIGH_POWER → DECREASE_OFFSET
Update: INCREASE_OFFSET → HIGH_POWER ⇄ HIGH_POWER_RX_MON ⇄ WAITING_IFO HIGH_POWER → DECREASE_OFFSET HIGH_POWER_RX_MON → DECREASE_OFFSET
2.Issue: Turn on the injection switches in HIGH_POWER, and turn them off automatically when leaving the state.
Update: Added code to automatically turn on the injection switches in the HIGH_POWER state and automatically turn them off when leaving that state (entering HIGH_POWER_RX_MON or DECREASE_OFFSET).
3.Issue: Send a Slack notification if Guardian remains in HIGH_POWER for an extended period.
Update: Added the code to send a Slack notification.
4.Issue: Allow the real-time model to be stopped in the SAFE state.
Update: changed @lpd_check to a comment in the SAFE state.
I had tested the Pcal GRD code.
It works as we expect.