comparison FXAnalyse.c @ 226:c244a1ecb6c3

Log when dedrift is automatically stop
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Thu, 18 Sep 2014 18:50:16 +0200
parents 7875436125dd
children a2f99632a80c
comparison
equal deleted inserted replaced
225:64db9d10164b 226:c244a1ecb6c3
1303 // stop dedrift if the comb is not locked 1303 // stop dedrift if the comb is not locked
1304 if ((dedrift.enabled) && 1304 if ((dedrift.enabled) &&
1305 (dedrift.threshold != 0.0) && 1305 (dedrift.threshold != 0.0) &&
1306 (freq.previous != 0.0) && 1306 (freq.previous != 0.0) &&
1307 (fabs(f - freq.previous) > dedrift.threshold)) { 1307 (fabs(f - freq.previous) > dedrift.threshold)) {
1308 1308
1309 logmsg("dedrift stop: frequency jump detected");
1310
1309 if (! dedrift.keep_slope) { 1311 if (! dedrift.keep_slope) {
1310 dedrift.applied = 0.0; 1312 dedrift.applied = 0.0;
1311 ad9956_set_sweep_rate_w(&ad9956, dedrift.applied); 1313 ad9956_set_sweep_rate_w(&ad9956, dedrift.applied);
1312 SetCtrlVal(MainPanel, PANEL_SLOPE_APPLIED, dedrift.applied); 1314 SetCtrlVal(MainPanel, PANEL_SLOPE_APPLIED, dedrift.applied);
1313 } 1315 }