Mercurial > hg > fxanalyse
diff FXAnalyse.c @ 221:c14f5a95850d
Fix N3 measurement
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Thu, 18 Sep 2014 18:01:56 +0200 |
parents | 28a4ff70fe48 |
children | db051dbf8d6e |
line wrap: on
line diff
--- a/FXAnalyse.c Thu Sep 18 18:01:38 2014 +0200 +++ b/FXAnalyse.c Thu Sep 18 18:01:56 2014 +0200 @@ -1214,7 +1214,7 @@ nobs = 0; // check delta frep - double delta_f_rep_m = f_rep_plus - f_rep_minus; + double delta_f_rep_m = f_rep_minus - f_rep_plus; double delta_f_rep = Sign1 * Ndiv * 2.0 * delta_f_lock_3 / N1; double delta = delta_f_rep_m - delta_f_rep; @@ -1222,7 +1222,7 @@ delta_f_rep_m, delta_f_rep, delta, delta / delta_f_rep); // compute N3 - double delta_f_beat = f_beat_plus - f_beat_minus + 2.0 * Sign1 * Sign3 * N3/N1 * Ndiv * delta_f_lock_3; + double delta_f_beat = f_beat_minus - f_beat_plus + 2.0 * Sign1 * Sign3 * N3/N1 * Ndiv * delta_f_lock_3; double delta_f_beat_expected = delta_f_rep * N3; logmsg("delta fbeat: measured=%e expected=%e difference=%e",