diff options
author | Constantin Riß <constantin.riss@dre.de> | 2010-02-07 22:20:40 +0100 |
---|---|---|
committer | Constantin Riß <constantin.riss@dre.de> | 2010-02-07 22:20:40 +0100 |
commit | 3b4db495c6fe7452fddc096d3085e44470830694 (patch) | |
tree | 9511d4fb43621d1e52e2d9a8dfc8b36a21361140 /House.cpp | |
parent | f53113f02ea5369e50bd33232db3d2b48f64cc1c (diff) | |
download | c3d-3b4db495c6fe7452fddc096d3085e44470830694.tar c3d-3b4db495c6fe7452fddc096d3085e44470830694.zip |
Temperaturverlauf in farbe
Diffstat (limited to 'House.cpp')
-rw-r--r-- | House.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -471,21 +471,22 @@ void House::calcprobeinput(int day, int time, int month) { if(E>=collectoroutput && collectoroutput>0) {E -= collectoroutput; collectoroutput=0;} else if(E<collectoroutput && collectoroutput>0) {collectoroutput -= E; E=0;}*/ calccollectoroutput(day, time, month); - std::cerr << "Time: " << time << " Output: " << collectoroutput << " Watt" << std::endl; +// std::cerr << "Time: " << time << " Output: " << collectoroutput << " Watt" << std::endl; // std::cerr << sun.elevationangle(day, time) << std::endl; collectoroutput-=neededenergy[month][time]; } void House::controller(){ - static int day=0, time=0, month=0; + static int day=90, time=0, month=0; calcprobeinput(day, time, month); temp.setprobetemp(collectortemp); temp.setinput(collectoroutput); temp.calcTemp(); + std::cerr << day << " " << time << " " << temp.getaverage() << std::endl; + ++time; if(time > 23){ - std::cerr << day << " " << temp.getaverage() << std::endl; time = 0; ++day; } |