瀏覽代碼

fix(mcu): 更新设备控制中的值范围限制

- 将value的最大限制从40调整为140以支持更大的范围
rambo 1 周之前
父節點
當前提交
cfe05b9792
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      python/mcu/DeviceControl.py

+ 1 - 1
python/mcu/DeviceControl.py

@@ -1500,7 +1500,7 @@ class DeviceControl(BaseClass, metaclass=SingletonType):
                     else down_speed
                 )
                 value = value / 10  # value 单位毫米
-                assert 0 <= value <= 40
+                assert 0 <= value <= 140
                 assert 0 <= max_speed <= 10000
             case "camera_steering":
                 # 角度为度 未放大 精确到0.1度