View Single Post
Old 01-05-2017, 06:17 PM   #32 (permalink)
t vago
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 828
Thanked 708 Times in 456 Posts
Quote:
Originally Posted by sallen View Post
Another observation I had that may help is that (on a short run at least) current is capable of some level of accuracy.

I drove to the supermarket earlier and Current (large digits) said less than 0 mpg (0.4 or something), however, on the way back I arrived home with it showing 28mpg which is pretty realistic.
Yah, I was wrong in my initial analysis of why CURR and TANK trip fuel economy displays were off. Turns out that I introduced an overflow bug in the fuel economy calculation, in my quest to save 8 bytes of RAM. It's been fixed, of course, and I have also more fully integrated Imperial gallon functionality into the code. Unfortunately, there will be no way to switch on-the-fly between US gallons and Imperial gallons.

I also made that microseconds/gallon parameter a fixed (non-convertable) parameter. For anyone running my code, whether they select US or Imperial gallons, or if they run in metric mode, that microseconds/gallon figure will stay in units of microseconds per US gallon. That's a legacy from the original DCB MPGuino code.

Going to test the code fixes tonight, and will post the corrected code once verification is complete.
  Reply With Quote