DCS Bank Vektor Bug (Euler Angles)  Topic is solved solved with post #23488

Here you can talk about creating profiles, discuss your profile settings and share problems with games and plugins.
Please note that you first have to read the the fitting game section in the manual!

DCS Bank Vektor Bug (Euler Angles)

Postby asticher » Wed 24. Aug 2016, 11:15

Hello Folks,

I have still a big problem with the DCS Roll also called Bank Vektors.
I have to adjust the DCS Bank Export Value (Effekt 25) or alternative ac.Bank.
Reason: This DCS vector is a combined body frame vektor, but i need a fixed world frame vektor in order to get a prober 360° Bankangle in my MotionPit.
Elseway the bank vektor is turning upsidedown, when pitch reaches angle 90°.
Therefor i need to convert the bank angle. This is best done in the export.lua from DCS World.
First i read out the Euler angle (XYZ) like this:

ac = LoGetSelfData(lACid)

bank = ac.Bank
pitch = ac.Pank
Yaw = ac.Heading

So we have our three body frame vektors.
No comes the tricky part. I testet a few formulas like this:

roll = (math.cos(ac.Pitch)) * ac.Bank
roll = math.cos(ac.Pitch) * ac.Bank
or
roll = ac.Bank * math.abs(math.cos(ac.Pitch))

But still the Bank angle flips at somehow at Pitch up 90°. I also tried converting radiants with math.deg() .
And also tried out with the original vektors (LoGetADIPitchBankYaw())
No Effekt.

Has someone a clue?
"No Brain, No Pain"

2DOF 360° Full Motion Simulator with HTC Vive, Intel i7; 16GB; Gigabyte Board; Nvidia GTX970Ci; Samsung SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 96
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 4 times
Been thanked: 1 time

Re: DCS Bank Vektor Bug (Euler Angles)

Postby asticher » Sat 25. Feb 2017, 23:10

Push! No one an idea how to solve this with lua or c++?
"No Brain, No Pain"

2DOF 360° Full Motion Simulator with HTC Vive, Intel i7; 16GB; Gigabyte Board; Nvidia GTX970Ci; Samsung SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 96
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 4 times
Been thanked: 1 time

Re: DCS Bank Vektor Bug (Euler Angles)

Postby asticher » Sun 9. Apr 2017, 20:58

Some Update:

News Folks!
After some notes on the public support forum, ED
has opened a Ticket for this issue:
https://www.digitalcombatsimulator.c...support/60400/

"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.

Lua export script with lua Matrix class sample added 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)

Wait for it.
--
Best regards,
Andrey Filin
Eagle Dynamics IT Team"
-------------------------------------


So can someone do something with it? :roll:
"No Brain, No Pain"

2DOF 360° Full Motion Simulator with HTC Vive, Intel i7; 16GB; Gigabyte Board; Nvidia GTX970Ci; Samsung SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 96
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 4 times
Been thanked: 1 time

Re: DCS Bank Vektor Bug (Euler Angles)

Postby Deadman » Fri 11. Aug 2017, 22:20

Any change to this?
Deadman
 
Posts: 4
Joined: Mon 7. Aug 2017, 06:57
Has thanked: 0 time
Been thanked: 0 time

Re: DCS Bank Vektor Bug (Euler Angles)

Postby asticher » Wed 23. Aug 2017, 16:31

No, new code didn´t change the behavior of the axis values.
"No Brain, No Pain"

2DOF 360° Full Motion Simulator with HTC Vive, Intel i7; 16GB; Gigabyte Board; Nvidia GTX970Ci; Samsung SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 96
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 4 times
Been thanked: 1 time

Re: DCS Bank Vektor Bug (Euler Angles)  Topic is solved

Postby asticher » Wed 1. May 2019, 00:52

Heads UP Pilots!

With this Export.lua for DCS World you can counter this Effekt!
https://drive.google.com/open?id=1Z7dsO ... EkotDJPCys

You can make forward / backward / inverted loops as you like,
For example, you can cancel the climb at 80° PitchUp,
You can even roll a bit at 90° pitch,
You can go up to 4 degrees off the track through the vertical.
If you don´t hit vertical the "normal" Bankflip occours and Pitch will decrease as "normal".
Some rare miss behaviors and small stutters are still a issue, but you know...

Have Fun!

PS: use the value roll_final and pitch_final!
Attachments
Export-Countersript.rar
v1.0 for x-sim
(1.94 KiB) Downloaded 28 times
"No Brain, No Pain"

2DOF 360° Full Motion Simulator with HTC Vive, Intel i7; 16GB; Gigabyte Board; Nvidia GTX970Ci; Samsung SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 96
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 4 times
Been thanked: 1 time


Return to Game profile & plugin discussions

Who is online

Users browsing this forum: No registered users and 1 guest