public void Simulate(float deltaT, FanControlInput input) { float roomTemp = input.GetRoomTemperature(); float outTemp = input.GetOutsideTemperature(); if (fan_) { if (roomTemp < roomTempOff || roomTemp - outTemp < tempDiffOff) { fan_ = false; } } else { if (roomTemp > roomTempOn && roomTemp - outTemp > tempDiffOn) { fan_ = true; } } }
public void Simulate(float deltaT, FanControlInput input) { fan = ThermoPredictSimulate(deltaT, input.GetOutsideTemperature(), input.GetRoomTemperature()); }
public void Simulate(float deltaT, FanControlInput input) { }