# HG changeset patch # User Daniele Nicolodi # Date 1411056116 -7200 # Node ID c14f5a95850d3c1df3715ec856e9817416ba4f8a # Parent 28a4ff70fe4844f6f670eee217a252fabbe36f85 Fix N3 measurement diff -r 28a4ff70fe48 -r c14f5a95850d FXAnalyse.c --- 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",