Changeset 4015 in Sophya for trunk/AddOn/TAcq/brviscalc.h
- Timestamp:
- Aug 8, 2011, 10:05:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/brviscalc.h
r4012 r4015 72 72 // Pour passer en mode intervalle en temps pour sauvegarde matrices visibilites - intervalle de temps en secondes 73 73 inline void SetTimeIntervalMode(double dtime=1.) 74 { fgnpaq_time=false; dtimemean_=(dtime>1e-6)?dtime:1.; }74 { fgnpaq_time=false; dtimemean_=(dtime>1e-6)?dtime:1.; dtimem_ttops_=(uint_8)(dtimemean_*1.25e8); } 75 75 76 76 // Methode d'execution standard du thread (on redefinit la methode de BRBaseProcessor) … … 103 103 return ((npaqcumul_>=nmean_)?true:false); 104 104 else { 105 return (((vpaq_[0].TimeTag()- first_tt_)/1.25e8>=dtimemean_)?true:false);105 return (((vpaq_[0].TimeTag()-threshold_tt_)>=dtimem_ttops_)?true:false); 106 106 } 107 107 } … … 117 117 uint_4 nmean_; // Nombre de spectres pour le calcul des moyennes 118 118 double dtimemean_; // Intervalle en temps pour le calcul des moyennes - exprimes en secondes 119 uint_8 dtimem_ttops_; // Intervalle en temps pour le calcul des moyennes - en impulsions TimeTag (125 MHz) 120 uint_8 threshold_tt_; // Valeurs seuil TimeTag pour chaque matrice de visibilite - muliple de dtimem_ttops_ 119 121 bool fgnpaq_time; // true -> utilisation nmean_ comme nb de paquet/spectre, false -> dtimemean_ 120 122
Note:
See TracChangeset
for help on using the changeset viewer.