소스 검색

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