Length Sensing and Control›Calibration
#12002
Change to locking algo
The reintroduction of the sine excitation had the unfortunate side effect of breaking the noise excitation. I hope to have fixed this by adding the two excitations (rather than having the sine overwrite the niose). The interesting part of the new code, near the end of "Reconstruct", is:
// generate filtered exciation
exc_out *= exc_fb;
exc_out += exc_fa * exc_val;
if( exc_amp == 0.0 )
exc_val = 0.0;
else
exc_val = exc_amp * bitrot();
exc_out += exc_val;
debugging_data[ 1 ] = exc_out;
// add sine data
if( sine_amp != 0.0 )
debugging_data[ 1 ] += mysine.fast_output();
This has the additional implication that the Sine_DOF onfly value is not respected by the code, since the sine excitation is added to the noise excitation and injected according to the value of Exc_DOF (1 = CARM, 2 = DARM, 3 = PRCL, 4 = MICH).