About the FmodErr update:
- the INJ_MAIN node has been polished, removing the unneeded stuff, polishing the use of decorators and checks;
-
the FmodErr tuning was changed in the following way:
- the FMODERR_CHECK state is now used also at the beginning of the procedure, and it skips everything else if the tuning is not needed; in this way we minimize the risk of doing something unwanted when nothing needs to be done;
- the two current tunings, LNFS and MC_Z loop, have been separated in two different states, so that only the relevant path is followed, again minimizing the risk of mixing stuff related of different tunings;
- a third path is already present but not commissioned yet, which will be used for the old style tuning, done by moving MC_Z in calibrated way;
- all of the above helped to track and hopefully fix the rare bug that occurred a few times, where the LNFS tuning was mixed already with the scan of the RFC; it was not problematic or dangerous, but it made the tuning last unnecessarily long;
- we set up a dedicated state for the calibration of the LNFS tuning; it doesn't work yet, but having it online makes it possible to debug it and test it whenever there is time available; once it is working we will basically duplicate it for the mechanical tuning;
- in order to decouple things, we are still using the old approach for the LNFS commands, since also there is no risk of concurrency inside INJ_MAIN; once things will be stable we will update it with the new cm-way that was implemented yesterday.
The new state flowchart of INJ_MAIN is attached.