Jump to content

Recommended Posts

Posted

Hello all,

 

i'd like to export the DCS Engine Values:

 

LoGetEngineInfo() -- (args - 0 ,results = table)

engineinfo =

{

RPM = {left, right},(%)

Temperature = { left, right}, (Celcium degrees)

HydraulicPressure = {left ,right},kg per square centimeter

fuel -- fuel quantity kg

}

 

But none of these values seem to work.

Or did a make something wrong? ...

 

function LuaExportAfterNextFrame()

local engine = LoGetEngineInfo();

 

socket.try(c:send(string.format("RPM = %.4f, \n", engine.RPM))

 

end

end

 

If no error...is the another way to get these values e.g. via exporting instrument values?

If yes, how?

 

THX for any help!!!

Posted (edited)

Thx but doa'nt work, at least at most aircrafts.

I'll noted that simshaker uses the Instrumentpanel for this:

 

get_argument_value

 

e.g.

local RPM = MainPanel:get_argument_value(50) * 100

 

But the responsible value number differs for every aircraft.

May someone know how i can figure out the right panel value number?

 

 

EDIT: found it. Values can be found are under

Your Drive:\DCS World\Mods\aircraft\*Aircraft*\Cockpit\Scripts\mainpanel_init.lua

Edited by vJaBoG32_Siddharta
Posted

Yes, the LoGetEngineInfo() gives information of FC airplanes.

For other airplanes you need to use the get argument functions. And yes, every airplane got his own values.

You can check in the file mainpanel_init.lua, usually over there you found the data you need.

For example: in the KA50

D:\DCS World OpenBeta\Mods\aircraft\Ka-50\Cockpit\Scripts\mainpanel_init.lua

 

 

---------------------------------------------------
-- Rotor RPM

RotorRPM					= CreateGauge()
RotorRPM.arg_number			= 52
RotorRPM.input				= {0.0, 110.0}
RotorRPM.output				= {0.0, 1.0}
RotorRPM.controller			= controllers.RotorRPM

 

So to get the value you need to do:

local MainPanel = GetDevice(0)

rotorRPM= MainPanel:get_argument_value(52)

 

 

..

  • 2 months later...
Posted

Any idea where to find this information for the F-18C? In its mainpanel_init there are only arguments for left and right throttle position (e.g. LeftThrottle.arg_number = 104), but not for engine RPM.

 

Any help with this would be greatly apprechiated. I need the Hornet engine RPM for refining the bass-shaker output on the Motion Integrated G-Seat. Already wrote to ED regarding this but received no reply.

my simpit website: bergisons.simpit.info

  • 2 months later...
Posted
Any idea where to find this information for the F-18C? In its mainpanel_init there are only arguments for left and right throttle position (e.g. LeftThrottle.arg_number = 104), but not for engine RPM.

 

Any help with this would be greatly apprechiated. I need the Hornet engine RPM for refining the bass-shaker output on the Motion Integrated G-Seat. Already wrote to ED regarding this but received no reply.

 

Did you ever figure this out? I am looking to get the same data, for the exact same reason (bass shaker, not the g seat).

 

Thanks mate!

  • 1 year later...
Posted
    -- 104 = Left Engine Throttle
    local leftThrottle = MainPanel:get_argument_value(104)
    -- 105 = Right Engine Throttle
    local rightThrottle = MainPanel:get_argument_value(105)

DCS Web Editor - New 3D Mission Editor for DCS that runs in your browser

DCS Web Viewer free browser based mission planner

dcs web editor signature2.png
4090 RTX, 13700KF, water cooled, Quest 3

 

  • 2 years later...
Posted

Resuscitating a very old thread here, but I am struggling to find the panel argument of the fuel on board value for the FA-18. Looked through all the IFEI files, can't find anything. Any help is apprechiated!

my simpit website: bergisons.simpit.info

Posted

It's not  part of the mainpanel, to get the values of the IFEI you need to pull the device info using the ListIndicator.

Something like (depends on what scripts you are using to get data output):

IFEI = getListIndicatorValue(5)

Upper_Readout = IFEI.txt_FUEL_UP

Lower_Readout = IFEI.txt_FUEL_DOWN

Bingo_Readout = IFEI.txt_BINGO

Posted

Wow thanks, that looks very promising already! Do you maybe know how to use 'getListIndicatorValue' with a hook lua script?

I have tried

local IFEI = getListIndicatorValue(5)
local own_fuel = IFEI.txt_FUEL_UP

and

local IFEI = Export.getListIndicatorValue(5)
local own_fuel = IFEI.txt_FUEL_UP

but none works.

Thanks again for your help!

my simpit website: bergisons.simpit.info

Posted

Also, try this instead of the getlistindicator as I think that’s part of the exportscript lia I use

And, worth checking it’s not a null value before trying to grab the data from it as that can crash the DCS export.

IFEI = list_indication(5)

i


Sent from my iPhone using Tapatalk

  • Recently Browsing   0 members

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