sensor update

This commit is contained in:
kepler155c@gmail.com
2018-12-29 23:32:20 -05:00
parent d2deddcf99
commit d4b8ffb978
6 changed files with 140 additions and 7 deletions

View File

@@ -65,8 +65,8 @@ local function hover()
local pitch = 295
local yaw = yap(wp.x - pt.x, wp.y, wp.z - pt.z)
if pt.y < wp.y + 16 and meta.motionY < 0 then
ni.launch(yaw, pitch, math.min(4, math.min(4, -meta.motionY * math.abs(pt.y - (wp.y + 16)) / 2)))
if pt.y < wp.y + 100 and meta.motionY < 0 then
ni.launch(yaw, pitch, math.min(4, math.min(4, -meta.motionY * math.abs(pt.y - (wp.y + 100)) / 2)))
end
until distance(wp, pt) < 2