From e5dadb898575ec79a54229a122b9ae1ab0f4eeab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=96=B5?= Date: Mon, 15 Jun 2026 15:35:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infer_camera_modular.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infer_camera_modular.py b/infer_camera_modular.py index 87f1c8f..6f81b34 100644 --- a/infer_camera_modular.py +++ b/infer_camera_modular.py @@ -383,7 +383,7 @@ class UAVControlLoop: if self._do_arm(): armed = True else: - return + return False # ---- ④ 起飞到目标高度(如高度不足) ---- takeoff_alt = self.fc_cfg.get("takeoff_alt", 5.0) @@ -478,7 +478,7 @@ class UAVControlLoop: return True time.sleep(0.1) self.logger.error("解锁超时(30 次轮询未确认 armed=true)") - return + return False # ---- 主循环调用的接口 ----