|
|
@@ -36,7 +36,7 @@ class DeviceControl(BaseClass, metaclass=SingletonType):
|
|
|
super().__init__(
|
|
|
websocket_manager=websocket_manager, smart_shooter=smart_shooter
|
|
|
)
|
|
|
- self.camera_height = 350
|
|
|
+ self.camera_height = 400
|
|
|
self.config_manager = None
|
|
|
self.msg_type = "mcu"
|
|
|
self.command = {
|
|
|
@@ -169,7 +169,7 @@ class DeviceControl(BaseClass, metaclass=SingletonType):
|
|
|
camera_height = return_data.get('value',35)
|
|
|
self.camera_height = camera_height
|
|
|
else:
|
|
|
- self.camera_height = 350
|
|
|
+ self.camera_height = 400
|
|
|
self.msg_type = 'get_device_info'
|
|
|
self.sendSocketMessage(
|
|
|
code=0,
|
|
|
@@ -1514,6 +1514,9 @@ class DeviceControl(BaseClass, metaclass=SingletonType):
|
|
|
)
|
|
|
value = value / 10 # value 单位毫米
|
|
|
max_camera_hight = self.camera_height/10
|
|
|
+ # print("高度位置",max_camera_hight)
|
|
|
+ if value > max_camera_hight:
|
|
|
+ value = max_camera_hight
|
|
|
assert 0 <= value <= max_camera_hight
|
|
|
assert 0 <= max_speed <= 10000
|
|
|
case "camera_steering":
|