浏览代码

fix a bug

chenhaiyang 4 年之前
父节点
当前提交
34c7543a01
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/controllers/equipment/fcu/q_learning.py

+ 2 - 0
app/controllers/equipment/fcu/q_learning.py

@@ -66,6 +66,8 @@ class QLearningCommandBuilder:
         speed = self.predict_speed(input_value)
         if np.isnan(current_temperature) or np.isnan(pre_temperature):
             speed = 2
+        if actual_target == 0.0:
+            speed = 0
 
         if speed == 0:
             on_off = 0