by asticher » Sat 15. Apr 2017, 17:51
Finally i got an answer from ED about the Pitch an Bank Bug!
(Bank flip @ 90° Pitch up and Pitch value revers after 90° Pitch up
------------------------------------------------
Hello,
I've filed a bug with our internal bug trucking system, requesting to have
the DCS matrix exported along with Euler angles.
Chances are you will get the DCS matrix with one of the upcoming updates.
Wait for it.
Best regards,
Andrey Filin
Eagle Dynamics IT Team
------------------------------------------------------
Lua export script with lua Matrix class sample
in that matrix class mathematics rotation is matched with DCS internal code:
local data = LoGetSelfData()
local yaw = 2.0 * math.pi - data.Heading -- because heading
returned opposite for navigation use
local pitch = data.Pitch
local roll = data.Bank
local m = Matrix33()
m:RotateY(yaw);
m:RotateZ(pitch);
m:RotateX(roll);
print("-------------------------------------")
print(m.x.x,m.x.y,m.x.z)
print(m.y.x,m.y.y,m.y.z)
print(m.z.x,m.z.y,m.z.z)
------------------------------------------------------
Can may someone try this out in the DCS Plugin?!
"No Brain, No Pain"
3DOF 360° Full Motion Simulator with Valve Index, AMD Ryzen 7, 32GB mem; Gigabyte Board UHD; GTX2080; Samsung M.2 SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,