NB: The gains used to construct CARM and DARM from the B7 and B8 signals should be the same magnitude, and only differ by a sign. These should be the same as the loop gains for the NArm and WArm loops.
Remember, the photodiode gains {B7,B8} --> {CARM,DARM} are used to balance the sensing (by checking that the WArm_ERR and NArm_ERR channels agree on the magnitude of a common noise source, like frequency noise). When this is done correctly, nearly all the noise should be in the CARM channel, since we're dominated by frequency noise. I like to use the 1111Hz line, since this is far away from any suppression of the arm loops.
You also need to check the driving matrix, so that the actuation is balanced. We expect WE_CORR to have a factor of 0.5, since it has twice as many magnets as NE. My favorite way to do this is check that the transfer function between WArm_ERR and NArm_ERR is flat, this means the loops have the same UGF. If the TF is not flat, adjust the driving gains. Then you can use these values in the {CARM,DARM}-->{NE,WE} matrix.
If the sensing/driving are not well-balanced, CARM and DARM will not be orthogonal. This isn't a big problem as long as we're actuating on the mirrors, but when we switch the CARM signal to feedback to the mode cleaner it means the frequency noise suppression will not be optimal, we'll impress some DARM noise on the laser, etc etc.
Once our demodulation phases and power levels stop fluctuating, these gain settings can (hopefully) be fixed in the code.