Jump to content

Claudio

Members
  • Posts

    4
  • Joined

  • Last visited

  1. Its on github what i have so far. Now i am waiting for my stepper motors to move my cockpit model :) https://github.com/claudio-walser/SimCockpit
  2. Ah very nice, i actually want pitch instead of yaw :D Works nicely since i know its radians, thanks again. PS: will post a link as soon as i put my code onto github. Maybe someone find it useful with a phyton daemon listening on a raspberry pi ;)
  3. Thank you very much for the explanation, this makes sense to me. The point with mist is, i extracted getRoll/getYaw and any needed mist.vec.* function its needing. The only point is, i should pass a Unit object to getRoll and i am not sure how to get the unit object which is currently player controlled in the Export.lua. Should be pretty simple i guess but i dont get it :( Anyway, will get deeper in what you said, thanks again Greets from switzerland and many happy landings
  4. 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
×
×
  • Create New...