From 3b4db495c6fe7452fddc096d3085e44470830694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20Ri=C3=9F?= Date: Sun, 7 Feb 2010 22:20:40 +0100 Subject: Temperaturverlauf in farbe --- House.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'House.cpp') 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(E0) {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; } -- cgit v1.2.3