Mercurial > hg > fxanalyse
comparison FXAnalyse.c @ 129:24db0c2d5219
Add more N3 measurement debug information in the log
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Tue, 17 Dec 2013 12:26:29 +0100 |
parents | 8a69c40f10b2 |
children | 934843ee4434 |
comparison
equal
deleted
inserted
replaced
128:8a69c40f10b2 | 129:24db0c2d5219 |
---|---|
1220 logmsg("f_beat_Sr_plus =%.12e", f_beat_Sr_plus); | 1220 logmsg("f_beat_Sr_plus =%.12e", f_beat_Sr_plus); |
1221 | 1221 |
1222 // compute N3 | 1222 // compute N3 |
1223 double delta_f_beat_Sr = f_beat_Sr_plus - f_beat_Sr_minus + 2.0 * Sign1 * Sign3 * N3/N1 * Ndiv * DeltakHz_3 * 1000; | 1223 double delta_f_beat_Sr = f_beat_Sr_plus - f_beat_Sr_minus + 2.0 * Sign1 * Sign3 * N3/N1 * Ndiv * DeltakHz_3 * 1000; |
1224 double delta_f_beat_Sr_expected = delta_f_rep * N3; | 1224 double delta_f_beat_Sr_expected = delta_f_rep * N3; |
1225 logmsg("delta fbeat: measured=%.12e expected=%.12e", delta_f_beat_Sr, delta_f_beat_Sr_expected); | 1225 logmsg("delta fbeat: measured=%.12e expected=%.12e difference=%.12e", |
1226 delta_f_beat_Sr, delta_f_beat_Sr_expected, delta_f_beat_Sr - delta_f_beat_Sr_expected); | |
1226 N_3 = delta_f_beat_Sr / delta_f_rep; | 1227 N_3 = delta_f_beat_Sr / delta_f_rep; |
1227 logmsg("measured N3=%.3f", N_3); | 1228 logmsg("measured N3=%.3f", N_3); |
1228 SetCtrlVal(CalcNPanel, CALCN_N, N_3); | 1229 SetCtrlVal(CalcNPanel, CALCN_N, N_3); |
1229 | 1230 |
1230 t1_3=0.0; | 1231 t1_3=0.0; |