Changeset 18917 for trunk/FACT++/src
- Timestamp:
- 10/18/17 13:45:23 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r18908 r18917 35 35 #include "HeadersPower.h" 36 36 #include "HeadersPFmini.h" 37 #include "HeadersBiasTemp.h" 37 38 #include "HeadersAgilent.h" 38 39 #include "HeadersFeedback.h" … … 637 638 DimDescribedState fDimFscControl; 638 639 DimDescribedState fDimPfMiniControl; 640 DimDescribedState fDimBiasTemp; 639 641 DimDescribedState fDimGpsControl; 640 642 DimDescribedState fDimSqmControl; … … 1957 1959 WriteHist(d, "hist-pfmini-hum", 1958 1960 fPfMiniHumidityHist, 100, 0); 1961 1962 return GetCurrentState(); 1963 } 1964 1965 int HandleBiasTemp(const EventImp &d) 1966 { 1967 if (!CheckDataSize(d, "BiasTemp:Data", sizeof(BiasTemp::Data))) 1968 return GetCurrentState(); 1969 1970 const BiasTemp::Data &data = d.Ref<BiasTemp::Data>(); 1971 1972 ostringstream out; 1973 1974 out << fixed << setprecision(1); 1975 out << d.GetJavaDate() << '\n'; 1976 1977 out << HTML::kGreen << '\t' << data.time << '\n'; 1978 out << HTML::kGreen << '\t' << data.avg << '\n'; 1979 out << HTML::kGreen << '\t' << data.rms << '\n'; 1980 1981 ofstream(fPath+"/biastemp.data") << out.str(); 1959 1982 1960 1983 return GetCurrentState(); … … 3165 3188 out << GetStateHtml(fDimFscControl, FSC::State::kConnected); 3166 3189 out << GetStateHtml(fDimPfMiniControl, PFmini::State::kConnected); 3190 out << GetStateHtml(fDimBiasTemp, BiasTemp::State::kConnected); 3167 3191 out << GetStateHtml(fDimGpsControl, GPS::State::kConnected); 3168 3192 out << GetStateHtml(fDimSqmControl, SQM::State::kConnected); … … 3251 3275 fDimFscControl ("FSC_CONTROL"), 3252 3276 fDimPfMiniControl ("PFMINI_CONTROL"), 3277 fDimBiasTemp ("BIAS_TEMP"), 3253 3278 fDimGpsControl ("GPS_CONTROL"), 3254 3279 fDimSqmControl ("SQM_CONTROL"), … … 3279 3304 fDimFscControl.Subscribe(*this); 3280 3305 fDimPfMiniControl.Subscribe(*this); 3306 fDimBiasTemp.Subscribe(*this); 3281 3307 fDimGpsControl.Subscribe(*this); 3282 3308 fDimSqmControl.Subscribe(*this); … … 3319 3345 Subscribe("PFMINI_CONTROL/DATA") 3320 3346 (bind(&StateMachineSmartFACT::HandlePfMiniData, this, placeholders::_1)); 3347 3348 Subscribe("BIAS_TEMP/DATA") 3349 (bind(&StateMachineSmartFACT::HandleBiasTemp, this, placeholders::_1)); 3321 3350 3322 3351 Subscribe("GPS_CONTROL/NEMA")
Note:
See TracChangeset
for help on using the changeset viewer.