Fuel Calculator and Array Calculations

Discussion and support for i2 Standard and i2 Pro applications

Fuel Calculator and Array Calculations

Postby Gwen49 on Wed May 22, 2024 12:27 am

Hello Everyone,

I am writing asking for a bit of help, because I am working on a fuel calculator tool for iRacing.
I managed to get the stat_end of the fuel level for each lap (you can find the screenshot attached!)

But I am unable, from my stat_end data, to get the fuel consumption of the lap.
If anyone could give a little help, it would be very much appreciated.

Thank you everyone !

PS : Here is the code I used

Fuel in tank after end of each lap :

stat_end('Fuel Level' [l], 1, range_change("Outings:Laps"))
Attachments
fuelendlap.png
fuelendlap.png (22.43 KiB) Viewed 1672 times
Gwen49
 
Posts: 1
Joined: Thu Apr 25, 2024 2:52 am

Re: Fuel Calculator and Array Calculations

Postby buzzard73 on Mon Aug 05, 2024 5:07 am

I've done a bunch fuel math previously and rather than copy paste all the calcs, I'll attach the maths file with all the calculations.I recommend you add each one to a numeric gauge and then you can decide what suits your needs.

Your fuel channel will be different in iRacing, so you'll need to update the formulas with the name of your channel. Some of it may need double checking as there was some experimental stuff in there that I never tidied up (was on my todo list - item 483,063 the one after 'fixing the leaky radiator valve' and 'caulking the door frane' :D )

FUEL.PNG
FUEL.PNG (27.38 KiB) Viewed 951 times
Attachments
fuel_maths.xml
Various fuel math
(3.33 KiB) Downloaded 120 times
buzzard73
 
Posts: 4
Joined: Sat Apr 15, 2023 5:18 am


Return to i2 Data Analysis Software

Who is online

Users browsing this forum: Bing [Bot] and 6 guests