RecoverUAV

Recover UAV after mission

Usage: Used in 14 task(s)

Lua Implementation

-- Recover UAV
function execute(params)
    local uav = params.uav
    local recoveryLoc = params.recovery_location or this:getLocation3D()

    if uav and uav:isValid() then
        uav:addTask("DtReturnToBase", {
            base = recoveryLoc,
            method = params.recovery_method or "landing"
        })
        return true
    end
    return false
end