Jump to content

Recommended Posts

Posted

Hi,

does anyone know an equivalent for LoGetEngineInfo() ? After seeking around is seems, that this function does not work. It only causes the enclosing LUA script to be stopped by error. My intention is to reproduce external engine gauges, separated from the simulator in an own process.

Every idea is welcome. Regards,

Mike

[sIGPIC][/sIGPIC]

Posted

Thanks for the reply,

@BR=55=Sevas

I made a first step to get the fuel status from the returned structure. But the returned structure is something.... The only result is, that the script is interrupted from that point when it returns from LoGetEngineInfo().

The Code is:

local engine = LoGetEngineInfo()   -- gets the table
Panels.FuelStatus(engine.fuel_internal,engine.fuel_external) -- sends two values to my DLL fuel gauge
Panels.Protocol(0x10,string.format("Fuel: %f %f",engine.fuel_internal,engine.fuel_external))  -- puts the values into a protocol file 

Where 'Panels' is the interface to my connected DLL showing the external gauges.

@AlphaOneSix

I think your suggestion will be my solution. It doesn't matter anything where to get the data from. It is only frustrating , that offered interface functions do not work, even over many version upgrades.

Thanks to all in any case

Mike

[sIGPIC][/sIGPIC]

  • Recently Browsing   0 members

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