You might want to convert tSpeed from kph to mph
Quote: Originally Posted by
Erorus 
PHP Code:
Function GetMPG(tMAF As Variant,
tSpeed As Variant, tLTFuelTrim As Variant) As Variant ...
The problem I have with this is the air flow sensor is very optimistic, and you probably run richer than this formula indicates. It says I average around 60-90MPG when cruising on the hwy and up to 200+ MPG when coasting. However, it does change when you have the pedal down, etc. I forget where I stole this code from.
Quote: Originally Posted by
stevieg 
It looks like my botched attempt at MPG conversion I think.
I didn't think it was accurate as it could be either, and haven't actually used it in real-life.
Any idea what could be done using the OBD to get a more accurate measure?