Changeset 4105 for trunk/MagicSoft/Cosy/tcpip
- Timestamp:
- 05/20/04 05:01:03 (21 years ago)
- Location:
- trunk/MagicSoft/Cosy/tcpip
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/tcpip/MCeCoCom.cc
r4076 r4105 59 59 fSolarRadiation = solar; 60 60 fWindSpeed = wind; 61 62 if (fWindSpeed>30) 63 fAlarmCounter++; 64 else 65 fAlarmCounter=0; 61 66 62 67 cout << "Zd/Az: " << zd << "/" << az << " "; … … 131 136 if (fHumidity>80) 132 137 rc++; 138 if (fWindSpeed>10) 139 rc++; 133 140 if (fWindSpeed>20) 134 141 rc++; 135 142 if (fWindSpeed>30) 136 143 rc++; 137 if (fWindSpeed>50)138 rc++;139 144 140 145 return rc; -
trunk/MagicSoft/Cosy/tcpip/MCeCoCom.h
r4076 r4105 31 31 ComStatus_t fComStat; // communication status 32 32 33 Float_t fHumidity; // [%] 34 Float_t fTemperature; // [deg] celsius 35 Float_t fWindSpeed; // [km/h] 36 Float_t fSolarRadiation; // [W/m^2] IR-Radiation 33 Float_t fHumidity; // [%] 34 Float_t fTemperature; // [deg] celsius 35 Float_t fWindSpeed; // [km/h] 36 Float_t fSolarRadiation; // [W/m^2] IR-Radiation 37 38 Int_t fAlarmCounter; // Counter for alarm cases 37 39 38 40 virtual bool InterpreteCmd(TString cmd, TString str); … … 56 58 TString GetWeather() const; 57 59 Int_t GetWeatherStatus() const; 60 61 Bool_t HasAlarm() const { return fAlarmCounter>3; } 58 62 }; 59 63 -
trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc
r4076 r4105 156 156 er *= kRad2Deg; 157 157 158 rd.Ra(rd.Ra() *24/360);158 rd.Ra(rd.Ra()/15); 159 159 160 160 // Set status flag -
trunk/MagicSoft/Cosy/tcpip/MTcpIpIO.cc
r4076 r4105 74 74 return true; 75 75 76 const Int_t rc = lout.IsOutputDeviceEnabled(MLog::eGui); 77 lout.DisableOutputDevice(MLog::eGui); 78 lout.Lock(); 79 lout << msg << flush; 80 lout.UnLock(); 81 if (rc) 82 lout.EnableOutputDevice(MLog::eGui); 76 if (lout.Lock("MTcpIpIO::Send")) 77 { 78 const Int_t rc = lout.IsOutputDeviceEnabled(MLog::eGui); 79 lout.DisableOutputDevice(MLog::eGui); 80 lout << msg << flush; 81 lout.UnLock("MTcpIpIO::Send"); 82 if (rc) 83 lout.EnableOutputDevice(MLog::eGui); 84 } 83 85 84 86 fTime = t;
Note:
See TracChangeset
for help on using the changeset viewer.