autofly: autotp support position and waypoint

This commit is contained in:
cron 2020-11-21 20:08:53 +00:00 committed by Schmappie Eldress
parent 016be0eede
commit f8be6e24e9

View File

@ -269,6 +269,8 @@ function autofly.autotp(tpname)
local tpos=nil
if tpname == nil then
tpos = autofly.get_waypoint('AUTOTP')
elseif type(tpname) == "table" then
tpos = tpname
else
tpos=autofly.get_waypoint(tpname)
end