Yesterday evening and this morning we implemented a DISCHARGE_GR state. Its purpose is to move the values accumulated into the integrator of the AA actuator loops to the new setpoints. It is done by continuously monitoring the corrections done by the loops and saving it into the SQZ_FLT.set file under the constraint that the cavity transmission is satisfying. The discharge process can be safely executed when the cavity relocks.
The new DISCHARGE_GR state substitutes the previous discharge mechanism which caused a rapid jump of the actuator. The jump was as high as the the accumulated correction. It was frequently exciting a short FLT cavity mirrors oscillation.
In the upgrade process, the two existing functions restore_FCIM_FCEM_from_file() and restore_GR_M5_M7_from_file() were modified and the new state was added.
Detailed modifications log is present in the automation git in the dev-discharge branch.
The new code was successfully tested and will be left for the long run during the weekend.