Another simple way to log mileage
Thread Starter
Evolved Member
iTrader: (38)
Joined: Nov 2006
Posts: 1,745
Likes: 10
From: New Hampshire, USA
Another simple way to log mileage
I'm testing out a formula for logging gas mileage. I know there are many methods of doing this already, but this happened to be the easiest for me, as I was already logging lbs/min. Any input is appreciated.
Source formula: MPG = Density of Gasoline (g/lb) * Air:Fuel Ratio * Vehicle Speed / AirFlow (g/sec)
Density of Gasoline in g/lb = 28.01
Conversion for lb/min to g/sec = * 272.16
MPG = (28.01*[AFRatio]*[Speed])/([LbsMin]*272.16)
It's also worth noting that I am not using an actual Airflow MUT request, I'm evaluating lb/min based on Load:
lb/min = ([1ByteLoad]/95*[RPM])/454
Source formula: MPG = Density of Gasoline (g/lb) * Air:Fuel Ratio * Vehicle Speed / AirFlow (g/sec)
Density of Gasoline in g/lb = 28.01
Conversion for lb/min to g/sec = * 272.16
MPG = (28.01*[AFRatio]*[Speed])/([LbsMin]*272.16)
Code:
<DataListItem DataLog="N" Color="" Display="Gas Mileage" LogReference="mpg" RequestID="CALC" Eval="(28.01*[AFRatio]*[Speed])/([LbsMin]*272.16)" Unit="mpg" MetricEval="" MetricUnit="" ResponseBytes="1" GaugeMin="0" GaugeMax="10000" ChartMin="0" ChartMax="10000" ScalingFactor="1" Notes="" Priority="1" Visible="False" />
lb/min = ([1ByteLoad]/95*[RPM])/454
Code:
<DataListItem DataLog="Y" Color="" Display="Lbs/min" LogReference="LbsMin" RequestID="00" Eval="([1ByteLoad]/95*[RPM])/454" Unit="lbs" MetricEval="" MetricUnit="" ResponseBytes="1" GaugeMin="0" GaugeMax="65" ChartMin="0" ChartMax="65" ScalingFactor="1" Notes=""/>
Last edited by recompile; Feb 18, 2009 at 10:53 AM.



