Wow, after all this effort I believe I still need to learn to use vectors with dcs and lua script. It's the only way to get proper values for what we need. I don't understand why this wasn't clear to me before, but there's another problem associated with the bank value when used for bank speed. When you fly loops, the bank changes very rapidly from say +10 to -160 (anticlockwise). This is hard to eliminate as it is not a spike but a rapidly but smoothly changing value. In reality, your plane didn't do any movement around the roll axis, but the stupid instrument (ADI) thinks in a different way.
The software Tacview (see in action here
https://www.youtube.com/watch?v=rQK0zvl4l3c) obviously gets quality data about the orientation of aircraft. I need to get my hands on how to do it with export.lua.
This is how tacview does it:
http://lomac.strasoftware.com/download/ ... ortDCS.luaExport.lua says the following:
--[[
LUA_PATH = "?;?.lua;./Config/Export/?.lua"
require 'Vector'
-- See the Config/Export/Vector.lua file for Vector class details, please.
--]]
However, I can't get this working, no matter what.
If anyone knows vector math (&DCS, & lua script) now would be a good time to register to this forum and help us out. Would you(Sirnoname) happen to master this? See here the description of vectors in DCS.
http://en.wiki.eagle.ru/wiki/Simulator_ ... 2.1/Part_1Still testing. There's no more the original bank speed spike problem, that is gone.
Btw, I think we shouldn't add anything extra to user4,5,6 because there is a very good chance that export.lua won't work. For example, you see this in export.lua:
--local angle = LoGetAngleOfAttack()
local angle = 0
Why don't we use the LoGetAngleOfAttack() ? Because this works only with some aircraft, not all of them! So, if you fly a mission where you can select from a list of different aircrafts, you would notice that with some aircraft DCS plugin values read all 0.00 and it says connected. This would confuse the hell out of people. ("This just worked, what the.. Why doesn't this aircraft give values? The other just did?")
-L