예제 #1
0
            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;
                    }
                }
            }
예제 #2
0
 public void Simulate(float deltaT, FanControlInput input)
 {
     fan = ThermoPredictSimulate(deltaT, input.GetOutsideTemperature(), input.GetRoomTemperature());
 }
예제 #3
0
 public void Simulate(float deltaT, FanControlInput input)
 {
 }
예제 #4
0
 public void Simulate(float deltaT, FanControlInput input)
 {
     fan = ThermoPredictSimulate(deltaT, input.GetOutsideTemperature(), input.GetRoomTemperature());
 }
예제 #5
0
            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;
                  }

                }
            }
예제 #6
0
 public void Simulate(float deltaT, FanControlInput input)
 {
 }