Jump to content

LoSetCommand function in Export.lua


Diac

Recommended Posts

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.

 

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
  • 10 months later...

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.

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...