View Single Post
Old 02-17-2009, 10:02 AM   #840 (permalink)
rmccomiskie
EcoModding Lurker
 
Join Date: Aug 2008
Location: Massachusetts USA
Posts: 84

Ziggy - '95 Audi S6 Sedan

Manfred - '97 Audi A6 Quattro Sedan
90 day: 20.61 mpg (US)

Clarabell - '03 Audi A4 Quattro Avant

Sherman - '98 Audi A6 Quattro Avant

Cab - '96 Audi Cabriolet
Thanks: 0
Thanked 2 Times in 2 Posts
I spoke too soon. Last night I saw the GPH jump high again while using the injector tapped signal. So, the problem is not solved and it's not unique to the ECU signal. I'm digging deeper into the code now.

To clarify, this may be a problem only with instantgph(). I suspect that when the injector signal goes flatline, the injector temp variables are reset in loop(). Because there are no injector events happening, the inj open/closed routines never run and the variables are not updated from their reset state. The next time through loop(), the reset values are passed to the display routine which calls instantgph(). instantgph() calls div64 with a zero denominator which then returns 0xFFFFFFFF. So, the GPH value displayed is a very large number.

I'm experimenting to confirm that's what's happening.

Last edited by rmccomiskie; 02-17-2009 at 12:51 PM..
  Reply With Quote