summaryrefslogtreecommitdiffstats
path: root/House.cpp
diff options
context:
space:
mode:
authorConstantin Riß <constantin.riss@dre.de>2010-02-07 22:20:40 +0100
committerConstantin Riß <constantin.riss@dre.de>2010-02-07 22:20:40 +0100
commit3b4db495c6fe7452fddc096d3085e44470830694 (patch)
tree9511d4fb43621d1e52e2d9a8dfc8b36a21361140 /House.cpp
parentf53113f02ea5369e50bd33232db3d2b48f64cc1c (diff)
downloadc3d-3b4db495c6fe7452fddc096d3085e44470830694.tar
c3d-3b4db495c6fe7452fddc096d3085e44470830694.zip
Temperaturverlauf in farbe
Diffstat (limited to 'House.cpp')
-rw-r--r--House.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/House.cpp b/House.cpp
index dca8d44..2242c53 100644
--- a/House.cpp
+++ b/House.cpp
@@ -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;
}