Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A-10C2 module not able to export Fuel or other calculated values #132

Open
jvanlint opened this issue Feb 16, 2024 · 0 comments
Open

A-10C2 module not able to export Fuel or other calculated values #132

jvanlint opened this issue Feb 16, 2024 · 0 comments

Comments

@jvanlint
Copy link

Hi there,
Great plugin and it has become a valuable tool for me in DCS.
I was inspired by the F-15E profile I downloaded recently which displayed values like fuel flow and total fuel so dug around the files to see if something similar was available for the A-10C2. So there is code in there, but for A-10C2 it doesn't seem to want export the value defined in this line of code.


local lFuelQuantityCounterTenthOfThous = mainPanelDevice:get_argument_value(90) * 10000 			-- {0.0, 10.0} {0.0, 1.0}
local lFuelQuantityCounterThousands = mainPanelDevice:get_argument_value(91) * 1000 				-- {0.0, 10.0} {0.0, 1.0}
local lFuelQuantityCounterHundreds = mainPanelDevice:get_argument_value(92) * 100					-- {0.0, 10.0} {0.0, 1.0}
-- orginal
local lFuelQuantityCounter = ((lFuelQuantityCounterTenthOfThous + lFuelQuantityCounterThousands + lFuelQuantityCounterHundreds) / 10)
ExportScript.Tools.SendDataDAC("2007", string.format("%0.0f", lFuelQuantityCounter).."00")

Trying to read ID 2007 just gives a blank button. Trying to read the same value in the original A-10C airframe seems to return a value but this code is broken in the A-10C2 module. Any thoughts anyone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant