- Timestamp:
- 01/16/20 17:36:04 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fscctrl.cc
r19923 r19924 36 36 uint16_t fTempMax; 37 37 38 uint16_t fTempExceeded55; 38 uint16_t fTempExceeded; 39 float fTempLimit; 39 40 40 41 size_t fNumConsecutiveErrors; // Number of consecutive messages with errors … … 284 285 285 286 if (tempgt50) 286 fTempExceeded 55++;287 fTempExceeded++; 287 288 else 288 fTempExceeded 55= 0;289 290 if (fTempExceeded 55==3)291 { 292 Error("EMERGENCY: This is the third time in a row that any of the tempereture sensors exceeds 50degC.");289 fTempExceeded = 0; 290 291 if (fTempExceeded==3) 292 { 293 Error("EMERGENCY: This is the third time in a row that any of the tempereture sensors exceeds "+to_string(fTempLimit)+" degC."); 293 294 Dim::SendCommandNB("BIAS_CONTROL/VOLTAGE_OFF"); 294 295 Error("Sending 'BIAS_CONTROL/VOLTAGE_OFF'."); … … 607 608 ConnectionFSC(ba::io_service& ioservice, MessageImp &imp) : Connection(ioservice, imp()), 608 609 fIsVerbose(false), fIsAutoReconnect(false), 609 fTempMin(0), fTempMax(65535), fTempExceeded 55(0),610 fTempMin(0), fTempMax(65535), fTempExceeded(0), fTempLimit(60), 610 611 fReconnectTimeout(ioservice) 611 612 { … … 636 637 { 637 638 fTempMax = max; 639 } 640 641 void SetTempLimit(const float &lim) 642 { 643 fTempLimit = lim; 638 644 } 639 645 … … 925 931 fFSC.SetVerbose(!conf.Get<bool>("quiet")); 926 932 933 fFSC.SetTempLimit(60); 934 T::Info(Tools::Form("Overheating temperature limit set to "+to_string(60)+" degC")); 935 927 936 fFSC.SetTempMin(conf.Get<uint16_t>("temp-adc-min")); 928 937 fFSC.SetTempMax(conf.Get<uint16_t>("temp-adc-max"));
Note:
See TracChangeset
for help on using the changeset viewer.