AP_Scripting: fixed crossbox-humpty aerobatics

This commit is contained in:
Andrew Tridgell 2022-11-14 15:44:40 +11:00
parent a8318fc9bb
commit 93353442a4
1 changed files with 1 additions and 1 deletions

View File

@ -736,7 +736,7 @@ function path_composer(_name, _subpaths)
if sp.roll_ref ~= nil then if sp.roll_ref ~= nil then
local q = Quaternion() local q = Quaternion()
q:from_axis_angle(makeVector3f(1,0,0), math.rad(sp.roll_ref)) q:from_axis_angle(makeVector3f(1,0,0), math.rad(sp.roll_ref))
orientation = q * orientation orientation = orientation * q
orientation:normalize() orientation:normalize()
end end
end end