diff FXAnalyse.c @ 117:96ab53ab9496

Fix computaion of expected frep change
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Fri, 05 Jul 2013 16:23:43 +0200
parents 4f56dbdad85d
children 43b35f4aae78
line wrap: on
line diff
--- a/FXAnalyse.c	Fri Jul 05 16:07:18 2013 +0200
+++ b/FXAnalyse.c	Fri Jul 05 16:23:43 2013 +0200
@@ -1159,7 +1159,7 @@
 							
 							// check delta frep
 							double delta_f_rep = f_rep_plus - f_rep_minus;
-							double expected = N1 / Ndiv * 2.0 * DeltakHz_3 * 1000.0;
+							double expected = Ndiv * 2.0 * DeltakHz_3 * 1000.0 / N1;
 							logmsg("delta frep=%g Hz expected=%g Hz", delta_f_rep, expected);
 							
 							// compute N3