View Single Post
Old 12-29-2016, 11:15 AM   #21 (permalink)
t vago
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,808

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 831
Thanked 709 Times in 457 Posts
Quote:
Originally Posted by sallen View Post
Thanks again - Settings work like a charm - have input the VSS and mL/min and hope it will be good to go for my next drive.

One final Q the main MPGuino thread says your version "supports both metric and imperial units" - I might be thinking my instant is off because it's giveing me (higher than I expect) US MPG, when I'm used to UK mpg.

I looked through the code (I'm no arduino expert) and didn't see anything to define or chose between US and UK mpg. Is there a figure I can change to the size of a UK gallon, to get UK MPG?
Yah, that was somewhat inaccurately stated in the MPGuino wiki page, although I just added support for Imperial gallons instead of US gallons.

For your purposes, go to around line 2460 in the code, and change this:

Code:
	,3785411784ul	// numerator to convert gallons to liters
	,1000000000ul	// denominator to convert gallons to liters
to this:

Code:
	,454609ul	// numerator to convert Imperial gallons to liters
	,100000ul	// denominator to convert Imperial gallons to liters

  Reply With Quote