I am having a bit of difficulty running scripts with the "find_dataref" command. My understanding is that basic LUA does not interpret that command but that Xlua does.
I have done experiments when Air manager is not running and found that yes, Xlua understands "find_dataref" but FlyWithLua does not.
However, I have difficulty in getting Air Manager to run with Xlua. I do need to run Air Manager because I am using the Arduino to accept input from an old Yoke etc. (rotary encoders). But I need Air Manager to run a LUA interpreter that understands "find_dataref"
In fact, now that I am on about it, I have difficulty getting to run a script in Air Manager from a directory not of "it's" own choosing.
Thank You
Tom
How to run air manager with Xlua? "find_dataref".
Re: How to run air manager with Xlua? "find_dataref".
Hi,
find_dataref will be a specific thing used in a certain API. Each API will likely have it’s own version. It’s certainly not part of standard Lua. You could re-code. Not at my machine right now but pretty sure I have xLua, FlyWithLua, AM, SASL and Gizmo all running on my sim rig.
Tony
find_dataref will be a specific thing used in a certain API. Each API will likely have it’s own version. It’s certainly not part of standard Lua. You could re-code. Not at my machine right now but pretty sure I have xLua, FlyWithLua, AM, SASL and Gizmo all running on my sim rig.
Tony
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Re: How to run air manager with Xlua? "find_dataref".
Thank you for your quick reply.
I don't have a problem with re-coding. Perhaps I made this more difficult that it should have been.
All that I need to do is to find the value of a particular dataref at startup. Then I use that value to set the initial value of the dataref that I want it to be . Is there another way to do that? Probably be much easier than what I had in mind.
Thanks Again.
Tom
I don't have a problem with re-coding. Perhaps I made this more difficult that it should have been.
All that I need to do is to find the value of a particular dataref at startup. Then I use that value to set the initial value of the dataref that I want it to be . Is there another way to do that? Probably be much easier than what I had in mind.
Thanks Again.
Tom
Re: How to run air manager with Xlua? "find_dataref".
That’s a piece of cake with AM as long as the dataref is writeable. Not all are.
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D