浏览代码

amend command dict's keys name

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

+ 5 - 5
app/controllers/equipment/fcu/q_learning.py

@@ -66,7 +66,7 @@ class QLearningCommandBuilder:
         speed = self.predict_speed(input_value)
         if np.isnan(current_temperature) or np.isnan(pre_temperature):
             speed = 2
-            
+
         if speed == 0:
             on_off = 0
             water_on_off = 0
@@ -82,11 +82,11 @@ class QLearningCommandBuilder:
             season = 0
 
         command = {
-            'on_off': on_off,
-            'season': season,
+            'onOff': on_off,
+            'mode': season,
             'speed': int(speed),
-            'temperature_set': actual_target,
-            'water_on_off': water_on_off
+            'temperature': actual_target,
+            'water': water_on_off
         }
         return command