Diac Posted May 4, 2021 Posted May 4, 2021 Hi, The LoSetCommand function in Export.lua - can this be used to set a specific stick position etc. from e.g. an external script? From Export.lua located in the install folder: function LuaExportBeforeNextFrame() -- Works just before every simulation frame. -- Call Lo*() functions to set data to Lock On here -- For example: -- LoSetCommand(3, 0.25) -- rudder 0.25 right -- LoSetCommand(64) -- increase thrust end I am trying to make a more sophisticated autopilot for the MI-8, and I was initially planning to do it by extracting data by using the LoGet...() functions and send it to a python script, and use a virtual joystick to provide control inputs to DCS. If i can provide input to DCS directly by using LoSetCommand functions, I think that may be a better solution. 1
Guest Posted November 28, 2023 Posted November 28, 2023 Bump. First off, I know almost nothing about LoSetCommand(). But I have added it together with the iCommands to dcs-insight. I would very much like to get some feedback whether it works as it should in dcs-insight. The idea was to make it easy to test different commands from a GUI.
Recommended Posts