Mercurial > hg > fxanalyse
comparison FXAnalyse.c @ 64:d6efe6fe6eb3
Style fix
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 29 Oct 2012 14:43:57 +0100 |
parents | 53dbce5f0745 |
children | da82b4815c2f |
comparison
equal
deleted
inserted
replaced
63:2320f5fc66aa | 64:d6efe6fe6eb3 |
---|---|
2376 double wl; | 2376 double wl; |
2377 | 2377 |
2378 switch (event) | 2378 switch (event) |
2379 { | 2379 { |
2380 case EVENT_COMMIT: | 2380 case EVENT_COMMIT: |
2381 /* be prepaid to support more N estimates for different beat notes */ | 2381 // be prepared to support more N estimates for different beat notes |
2382 switch (control) | 2382 switch (control) |
2383 { | 2383 { |
2384 case PANEL_ESTIMATE_N3: | 2384 case PANEL_ESTIMATE_N3: |
2385 GetPanelAttribute(EstimateN3Panel, ATTR_VISIBLE , &visible); | 2385 GetPanelAttribute(EstimateN3Panel, ATTR_VISIBLE , &visible); |
2386 if (! visible) { | 2386 if (! visible) { |
2387 DisplayPanel(EstimateN3Panel); | 2387 DisplayPanel(EstimateN3Panel); |
2388 } | 2388 } |
2389 /* set current frep */ | 2389 // set current frep |
2390 SetCtrlVal(EstimateN3Panel, ESTIMATEN3_FREP, 250e6 + Math1); | 2390 SetCtrlVal(EstimateN3Panel, ESTIMATEN3_FREP, 250e6 + Math1); |
2391 /* default wavelenght for Sr cavity */ | 2391 // default wavelenght for Sr cavity |
2392 GetCtrlVal(EstimateN3Panel, ESTIMATEN3_WAVELENGTH, &wl); | 2392 GetCtrlVal(EstimateN3Panel, ESTIMATEN3_WAVELENGTH, &wl); |
2393 if (wl == 0.0) | 2393 if (wl == 0.0) |
2394 SetCtrlVal(EstimateN3Panel, ESTIMATEN3_WAVELENGTH, 698.50); | 2394 SetCtrlVal(EstimateN3Panel, ESTIMATEN3_WAVELENGTH, 698.50); |
2395 /* reset N3 estimate */ | 2395 // reset N3 estimate |
2396 SetCtrlVal(EstimateN3Panel, ESTIMATEN3_N, 0.0); | 2396 SetCtrlVal(EstimateN3Panel, ESTIMATEN3_N, 0.0); |
2397 break; | 2397 break; |
2398 } | 2398 } |
2399 break; | 2399 break; |
2400 } | 2400 } |