Browse Source

delete the logic that will adjust temperature when thermal mode changes

highing666 4 years ago
parent
commit
15dad63c9a
1 changed files with 4 additions and 9 deletions
  1. 4 9
      app/controllers/equipment/ahu/supply_air_temperature_set.py

+ 4 - 9
app/controllers/equipment/ahu/supply_air_temperature_set.py

@@ -77,16 +77,11 @@ class ACATAHSupplyAirTemperatureController:
 
     def build(self) -> float:
         if not self.is_off_to_on:
-            if self.is_thermal_mode_switched:
-                if self.thermal_mode == ThermalMode.heating:
-                    temperature = self.return_air + 1
-                else:
-                    temperature = self.return_air - 1
-            else:
-                cold_ratio = self.get_cold_ratio()
-                temperature = self.calculate_by_cold_vav(cold_ratio)
+            cold_ratio = self.get_cold_ratio()
+            logger.debug(cold_ratio)
+            temperature = self.calculate_by_cold_vav(cold_ratio)
         else:
-            temperature = 30.0
+            temperature = 25.0
 
         temperature = max(20.0, min(30.0, temperature))