mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
AP_Scripting: fixed beacon lost in ship landing
This commit is contained in:
parent
a7fb10c6d8
commit
b9a1c8b31e
@ -294,6 +294,7 @@ function update_target()
|
|||||||
arming:set_aux_auth_failed(auth_id, "Ship: no beacon")
|
arming:set_aux_auth_failed(auth_id, "Ship: no beacon")
|
||||||
end
|
end
|
||||||
have_target = false
|
have_target = false
|
||||||
|
return
|
||||||
end
|
end
|
||||||
if not have_target then
|
if not have_target then
|
||||||
gcs:send_text(0,"Have beacon")
|
gcs:send_text(0,"Have beacon")
|
||||||
@ -358,9 +359,6 @@ function update()
|
|||||||
if SHIP_ENABLE:get() < 1 then
|
if SHIP_ENABLE:get() < 1 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if not follow:have_target() then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
update_target()
|
update_target()
|
||||||
if not have_target then
|
if not have_target then
|
||||||
|
Loading…
Reference in New Issue
Block a user