mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: fixed crossbox-humpty aerobatics
This commit is contained in:
parent
a8318fc9bb
commit
93353442a4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue