Jump to content

DCS-BIOS: get airspeed from commondata.lua


Recommended Posts

Hi,

I am trying to get data from DCS to DCS-BIOS to display on an LCD.

The data I am looking for is the Indicated airspeed.

 

 

I am trying to get it by coding in commondata.lua:

 

 

local as_i = selfData.LoGetIndicatedAirSpeed()

defineIntegerFromGetter("ASPD_IND", function() return math.floor(as_i) end, 65535, "Airspeed", "Airspeed ind (m/s)")

 

That I found in another thread.

 

 

 

  1. I am not sure of this coding
  2. How do I know the address it is going to be sent to in order to display it through DCS-BIOS?

I think I have located the aircraft heading around 0x422 but wasn't able to go farther than that (my grasp of C and lua is very superficial to say the least).

 

 

I have read "Common Data Airspeed? #79" on Github but I hope that the matter has evolved since 2015.

 

 

Any help or pointer to a different thread would be appreciated!


Edited by bartzebrat
Solved
Link to comment
Share on other sites

Wow

 

I am sorry, I don’t get it (except that it sounds good) Would you mind being more explicit please?

 

 

EDIT: Just saw that you actualy updated github!!

Captura.PNG?dl=0

 

0qLB-nop3ptb-bNV021y7RmUQ

https://share.icloud.com/photos/0qLB-nop3ptb-bNV021y7RmUQ

 

I was not expecting that kind of help.

 

Thank you very much for taking the time!

 

 

EDIT again:

I couldn't find the address in the app extension in Chrome so I looked up in the commondata.json, got he address, converted it to HEX (0x0426). Then I realized the json seemed to have the data usually displayed in the chrome app... I cleared the cache and... there it was! I have learned a few things about DCS-BIOS today, thank you again!


Edited by bartzebrat
Adding
Link to comment
Share on other sites

  • Recently Browsing   0 members

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