Jump to content

How / Where to extract some Data from F18 ?


Cougar133

Recommended Posts

Hello !

 

I'm a little bit Lost ...with F18 .

 

I'm Trying to extract some data from scripts , but i dont know what file to check .

 

simple export.lua included in my DCS Folder ? / Scripts/export.lua

or

what about this file ? i don't understand

https://github.com/s-d-a/DCS-ExportScripts/blob/master/Scripts/DCS-ExportScript/ExportsModules/FA-18C_hornet.lua

 

i want to extract some simple data like AOA , Speed , altitude , heading , mach number , roll , pitch ..

 

thanks :)

[sIGPIC][/sIGPIC]

Ryzen 7950X / Z670E -  32Gb DDR5 6000CAS36 - 4070TI - ReverbG2 - Hotas Cougar FSSBR1

Link to comment
Share on other sites

I would try using a lua script within the Cockpit/Scripts (not sure if it would mess up the module though) to try and get this data.

 

dofile(LockOn_Options.script_path.."command_defs.lua")
dofile(LockOn_Options.script_path.."devices.lua")

local dev = GetSelf()
local sensor_data = get_base_data()
local update_time_step = 0.01

make_default_activity(update_time_step)

function update()

[indent]local ias = sensor_data:getIndicatedAirSpeed()
local tas = sensor_data:getTrueAirSpeed()
local pitch = sensor_data:getStickRollPosition()
local pitch = sensor_data:getStickPitchPosition()
local roll = sensor_data:getStickRollPosition()
local rudder = sensor_data:getRudderPosition()
local heading = sensor_data:getHeading()
local mach = sensor_data:getMachNumber()[/indent]


end

 

Hope that helps! :)

Link to comment
Share on other sites

  • 2 weeks later...

while sirius example is correct for the "Plane enviroment" (something you should only touch if you are a serious modder) for the "export enviroment" (more end user friendly) you need different scripts. I suggest downloading "Helios" or one of the other similar programms and look how they do it in thier Export.lua and how to get data to your JS, probably a socket connection

'controlling' the Ka50 feels like a discussion with the Autopilot and trim system about the flight direction.

Link to comment
Share on other sites

That method is surely better. My method would at least have some heavy modifications for the systems (likely in DLL) meaning the Lua could just break the module.

 

Have you tried of using DCS BIOS before? I've seen many DCS simpit owners use it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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