Hello Pilots
I am wondering how to get the current Roll/Yaw position in degrees with Lua.
Trying to export this values to a rapsberry pi.
I am searching the forums for two days now, but i am still not able to export those values :(.
So therefore i would have 3 Questions:
1. Tried with
local pitch,roll,yaw = LoGetADIPitchBankYaw()
local message = string.format("Roll:%.2f|Yaw:%.2f\n", roll, yaw)
Questions number 1, what kind of value is the result from LoGetADIPitchBankYaw? Ive seen examples multiplying it with 1000.0 or one example multiplying it with 57.3
Confused about that
2.
local heliData = LoGetHelicopterFMData()
local message = string.format("Roll:%.2f|Yaw:%.2f\n", heliData.roll, heliData.yaw)Same here, i have no idea what kind of values i get, but its not in degree i think.
3. Ive found the Mist Tools which have a getRoll and getYaw function which should exactly do what i want. Therefore, my question is, how to get the current unit controlled by the player?
--local planeId= LoGetPlayerPlaneId()
--local unit = Unit.getById(planeId)
This snippent wont do it unfortunately :noexpression:
Thanks already, hope some of you pro guys can help me :)
Claudio