小更改

This commit is contained in:
2026-06-15 15:35:52 +08:00
parent 8c5e2df379
commit e5dadb8985
+2 -2
View File
@@ -383,7 +383,7 @@ class UAVControlLoop:
if self._do_arm(): if self._do_arm():
armed = True armed = True
else: else:
return return False
# ---- ④ 起飞到目标高度(如高度不足) ---- # ---- ④ 起飞到目标高度(如高度不足) ----
takeoff_alt = self.fc_cfg.get("takeoff_alt", 5.0) takeoff_alt = self.fc_cfg.get("takeoff_alt", 5.0)
@@ -478,7 +478,7 @@ class UAVControlLoop:
return True return True
time.sleep(0.1) time.sleep(0.1)
self.logger.error("解锁超时(30 次轮询未确认 armed=true)") self.logger.error("解锁超时(30 次轮询未确认 armed=true)")
return return False
# ---- 主循环调用的接口 ---- # ---- 主循环调用的接口 ----