View Single Post
Old 10-06-2007, 04:09 AM   #22
skewbe
Newbie
 
Join Date: Jul 2007
Posts: 3
My Photos: ()
You might want to convert tSpeed from kph to mph

Quote: Originally Posted by Erorus View Post
PHP Code:
Function GetMPG(tMAF As Variant
   
tSpeed As VarianttLTFuelTrim 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 View Post
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?


Last edited by skewbe : 10-06-2007 at 04:16 AM.
skewbe is offline   Reply With Quote