From d011c8977ff585e3b2ebe1c77cc291a674ada34f Mon Sep 17 00:00:00 2001 From: MatthewHampsey Date: Mon, 24 Oct 2022 14:05:56 +1100 Subject: [PATCH] AP_Scripting: Fix humpty bump --- .../examples/Aerobatics/Trajectory/plane_aerobatics.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/examples/Aerobatics/Trajectory/plane_aerobatics.lua b/libraries/AP_Scripting/examples/Aerobatics/Trajectory/plane_aerobatics.lua index 91d116faf5..276a312548 100644 --- a/libraries/AP_Scripting/examples/Aerobatics/Trajectory/plane_aerobatics.lua +++ b/libraries/AP_Scripting/examples/Aerobatics/Trajectory/plane_aerobatics.lua @@ -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)