Hello guys and experts. I'm trying to get a calculation of the fuel consumption for each laps from Gran Turismo Sports and get it into the dash studio. As currently the game doesn't output much of the fuel data, except for the remaining Fuel Percentage.
I can't do much in advance Mathematics, just basic calculation will do. Been trying to use Javascript to get the fuel consumption(percentage) per lap but without success.
My pseudo would be something like if the lap has been changed, I would like to have the javascript to save the remaining fuel percentage to a variable, and use it to get my average fuel consumption percentage per lap. However, I'm having trouble to save that value.
Is there any workaround, or am I so dumb in writing the javascript in simhub?
@wotever @romainrob appreciate of you may assist me.
Thank you in advance guys.