summaryrefslogtreecommitdiffstats
path: root/House.cpp
diff options
context:
space:
mode:
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;
}