Mercurial > hg > fxanalyse
comparison FXAnalyse.c @ 54:73e23c879d6e
Do not update beatnote sign indicators at each time tick
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Thu, 11 Oct 2012 11:55:37 +0200 |
parents | 57e2e88aadb9 |
children | 54add101fdca |
comparison
equal
deleted
inserted
replaced
53:57e2e88aadb9 | 54:73e23c879d6e |
---|---|
570 | 570 |
571 SetCtrlVal(MainPanel, PANEL_FREQ1, Ch1); | 571 SetCtrlVal(MainPanel, PANEL_FREQ1, Ch1); |
572 SetCtrlVal(MainPanel, PANEL_FREQ2, Ch2); | 572 SetCtrlVal(MainPanel, PANEL_FREQ2, Ch2); |
573 SetCtrlVal(MainPanel, PANEL_FREQ3, Ch3); | 573 SetCtrlVal(MainPanel, PANEL_FREQ3, Ch3); |
574 SetCtrlVal(MainPanel, PANEL_FREQ4, Ch4); | 574 SetCtrlVal(MainPanel, PANEL_FREQ4, Ch4); |
575 SetCtrlVal(MainPanel, PANEL_SIGN1, Signe1); | 575 |
576 SetCtrlVal(MainPanel, PANEL_SIGN2, Signe2); | |
577 SetCtrlVal(MainPanel, PANEL_SIGN3, Signe3); | |
578 SetCtrlVal(MainPanel, PANEL_CENTERFREQUENCY, CenterFrequencyCh2); | 576 SetCtrlVal(MainPanel, PANEL_CENTERFREQUENCY, CenterFrequencyCh2); |
579 | 577 |
580 // Treat data | 578 // Treat data |
581 | 579 |
582 Math1 = mupEval(MathParser1); | 580 Math1 = mupEval(MathParser1); |
1173 else | 1171 else |
1174 Signe1 = +1.0; | 1172 Signe1 = +1.0; |
1175 SetCtrlVal(MainPanel, PANEL_DDS1, Frequency1); | 1173 SetCtrlVal(MainPanel, PANEL_DDS1, Frequency1); |
1176 DDS4xAD9912_SetFrequency(&DDS4xAD9912, 1, Frequency1); | 1174 DDS4xAD9912_SetFrequency(&DDS4xAD9912, 1, Frequency1); |
1177 Getsign1 = FALSE; | 1175 Getsign1 = FALSE; |
1176 SetCtrlVal(MainPanel, PANEL_SIGN1, Signe1); | |
1178 } | 1177 } |
1179 } | 1178 } |
1180 if (Getsign2 == TRUE) { | 1179 if (Getsign2 == TRUE) { |
1181 if (utc > tbegin2+2){ | 1180 if (utc > tbegin2+2){ |
1182 if (Math1 > Frepbefore2) { | 1181 if (Math1 > Frepbefore2) { |
1191 Signe2 = +1.0; | 1190 Signe2 = +1.0; |
1192 } | 1191 } |
1193 SetCtrlVal(MainPanel, PANEL_DDS1, Frequency2); | 1192 SetCtrlVal(MainPanel, PANEL_DDS1, Frequency2); |
1194 DDS4xAD9912_SetFrequency(&DDS4xAD9912, 1, Frequency2); | 1193 DDS4xAD9912_SetFrequency(&DDS4xAD9912, 1, Frequency2); |
1195 Getsign2 = FALSE; | 1194 Getsign2 = FALSE; |
1195 SetCtrlVal(MainPanel, PANEL_SIGN2, Signe2); | |
1196 } | 1196 } |
1197 } | 1197 } |
1198 if (Getsign3 == TRUE) { | 1198 if (Getsign3 == TRUE) { |
1199 if (utc > tbegin3+2){ | 1199 if (utc > tbegin3+2){ |
1200 if (Ch3 > Frepbefore3) | 1200 if (Ch3 > Frepbefore3) |
1202 else | 1202 else |
1203 Signe3 = +1.0; | 1203 Signe3 = +1.0; |
1204 SetCtrlVal(MainPanel, PANEL_DDS3, Frequency3); | 1204 SetCtrlVal(MainPanel, PANEL_DDS3, Frequency3); |
1205 DDS4xAD9912_SetFrequency(&DDS4xAD9912, 4, Frequency3); | 1205 DDS4xAD9912_SetFrequency(&DDS4xAD9912, 4, Frequency3); |
1206 Getsign3 = FALSE; | 1206 Getsign3 = FALSE; |
1207 SetCtrlVal(MainPanel, PANEL_SIGN3, Signe3); | |
1207 } | 1208 } |
1208 } | 1209 } |
1209 | 1210 |
1210 // slope cancelling | 1211 // slope cancelling |
1211 if (SlopeMeasuring == TRUE) | 1212 if (SlopeMeasuring == TRUE) |