mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_Scripting: Fix humpty bump
This commit is contained in:
parent
56c4794700
commit
d011c8977f
@ -573,7 +573,7 @@ function humpty_bump(t, r, h, arg3, arg4)
|
||||
pos = makeVector3f(3*r,0, -r -l + (T*t - 3*r*math.pi/2.0 -l))
|
||||
roll = math.pi
|
||||
elseif (t < (2*math.pi*r + 2*l)/T) then
|
||||
pos = makeVector3f(2*r + r*math.cos(T*t/r - 3*math.pi/2 -2*l/r),0, -r + math.sin(T*t/r - 3*math.pi/2 -2*l/r))
|
||||
pos = makeVector3f(2*r + r*math.cos(T*t/r - 3*math.pi/2 -2*l/r),0, -r + r*math.sin(T*t/r - 3*math.pi/2 -2*l/r))
|
||||
roll = math.pi
|
||||
else
|
||||
pos = makeVector3f(2*r -(T*t - 2*r*math.pi - 2*l), 0, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user