小更改
This commit is contained in:
@@ -379,11 +379,11 @@ class UAVControlLoop:
|
|||||||
mode, armed, alt_rel, age_s)
|
mode, armed, alt_rel, age_s)
|
||||||
|
|
||||||
# ---- ③ 解锁(如未解锁) ----
|
# ---- ③ 解锁(如未解锁) ----
|
||||||
if not armed:
|
# if not armed:
|
||||||
if self._do_arm():
|
# if self._do_arm():
|
||||||
armed = True
|
# armed = True
|
||||||
else:
|
# else:
|
||||||
return False
|
# return False
|
||||||
|
|
||||||
# ---- ④ 起飞到目标高度(如高度不足) ----
|
# ---- ④ 起飞到目标高度(如高度不足) ----
|
||||||
takeoff_alt = self.fc_cfg.get("takeoff_alt", 5.0)
|
takeoff_alt = self.fc_cfg.get("takeoff_alt", 5.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user