EcoModder.com (https://ecomodder.com/forum/)
-   Instrumentation (https://ecomodder.com/forum/instrumentation.html)
-   -   How to get instant fuel consumption from Megasquirt (https://ecomodder.com/forum/showthread.php/how-get-instant-fuel-consumption-megasquirt-5474.html)

 TELVM 10-09-2008 08:12 PM

How to get instant fuel consumption from Megasquirt

This works for MS1-Extra/MSnS-E, combat proven. Most probably will also work for MS2. No vehicle speed input is required ;) .

Data we must know beforehand:

- 5th gear ratio
- Differential ratio
- Tractive wheel perimeter in centimeters
- Injector flow in cc

For instance in a Miata NA 1.6 the data are:

- 0.814
- 4.300
- 181.4583917 cm
- 205 cc

Then input the data into this formula:

RPM = ((((100*100000)/60)/wheel perimeter)*(5th gear ratio*differential ratio))

For the Miata:

RPM = ((((100*100000)/60)/181.4583917)*(0.814*4.300)) = 3215 (this will be the magic number)

Now open with notepad the msns-extra.ini file, the path is C:\Program files\MegaSquirt\your-project-car-name\msns-extra.ini . Then choose your way ...

OPTION ONE: FOR LITRES/100KM DISPLAY

Look for this paragraph towards the end of the file:

Code:

```;**************************************************************************** ;  CHANGE THESE TO SUIT YOUR CAR TO GET MPG, MPH, ETC. THIS WILL ONLY WORK WITH A SUITABLE ;  VEHICLE SPEED SENSOR CONNECTED TO MSnS-EXTRA CODE.   Speed = { 70 }    ; Change this to your actual speed @ 2.5V from VSS circuit   fuelCC = { 2168 } ; Enter the total flow for all your injectors here in cc/Min ;****************************************************************************   squirtmul = { divider1 < 2 ? 2 : divider1 < 3 ? 1 : divider1 < 5 ? 0.5 : divider1 < 9 ? 0.25 : divider1 < 17 ? 0.125 : 1 }   squirts  = { alternate1 > 0 ? rpm100 / 0.6 * squirtmul : rpm100 * 2 * squirtmul / 0.6                                  } ; How many squirts per Sec   OpenWidth = { injOpen1 * 0.1 }                                            ; Pulse width for injector opening time   CCpHr    = { pulseWidth < 1 ? 1 : (fuelCC/60) * ((pulseWidth - OpenWidth)/1000) * squirts * 3600                                      } ; cc / hr   mphTemp  = { fuelADC < 1 ? 0 : (fuelADC * Speed) /127.5              }  ; MPH   mph      = { mphTemp < 1 ? 0 : mphTemp                                }  ; Ensure we get 0 mph   USgph    = {  CCpHr / 3785                                            }  ; US Gallons / Hr   USmpg    = { fuelADC < 1 ? 0 : mph < 1 ? 0 : mph / USgph              }  ; US Miles / Gallon   gph      = {  CCpHr / 4546                                            }  ; Real Gallons / Hr   mpg      = { fuelADC < 1 ? 0 : mph < 1 ? 0 : mph / gph                }  ; Real Miles / Gallon ;*****************************************************************************```

In 'fuelCC' we must enter the injector flow, times number of injectors (if simultaneous injection). Or injector flow, times number of injectors, divided by 2 (if batch injection). For this particular Miata it is (205*4)/2 = 410 :

Code:

```;**************************************************************************** ;  CHANGE THESE TO SUIT YOUR CAR TO GET MPG, MPH, ETC. THIS WILL ONLY WORK WITH A SUITABLE ;  VEHICLE SPEED SENSOR CONNECTED TO MSnS-EXTRA CODE.   Speed = { 70 }    ; Change this to your actual speed @ 2.5V from VSS circuit   fuelCC = { 410 } ; Enter the total flow for all your injectors here in cc/Min ;****************************************************************************   squirtmul = { divider1 < 2 ? 2 : divider1 < 3 ? 1 : divider1 < 5 ? 0.5 : divider1 < 9 ? 0.25 : divider1 < 17 ? 0.125 : 1 }   squirts  = { alternate1 > 0 ? rpm100 / 0.6 * squirtmul : rpm100 * 2 * squirtmul / 0.6                                  } ; How many squirts per Sec   OpenWidth = { injOpen1 * 0.1 }                                            ; Pulse width for injector opening time   CCpHr    = { pulseWidth < 1 ? 1 : (fuelCC/60) * ((pulseWidth - OpenWidth)/1000) * squirts * 3600                                      } ; cc / hr   mphTemp  = { fuelADC < 1 ? 0 : (fuelADC * Speed) /127.5              }  ; MPH   mph      = { mphTemp < 1 ? 0 : mphTemp                                }  ; Ensure we get 0 mph   USgph    = {  CCpHr / 3785                                            }  ; US Gallons / Hr   USmpg    = { fuelADC < 1 ? 0 : mph < 1 ? 0 : mph / USgph              }  ; US Miles / Gallon   gph      = {  CCpHr / 4546                                            }  ; Real Gallons / Hr   mpg      = { fuelADC < 1 ? 0 : mph < 1 ? 0 : mph / gph                }  ; Real Miles / Gallon ;*****************************************************************************```

Now we add an user defined variable with its formula:

Code:

```;**************************************************************************** ;  CHANGE THESE TO SUIT YOUR CAR TO GET MPG, MPH, ETC. THIS WILL ONLY WORK WITH A SUITABLE ;  VEHICLE SPEED SENSOR CONNECTED TO MSnS-EXTRA CODE.   Speed = { 70 }    ; Change this to your actual speed @ 2.5V from VSS circuit   fuelCC = { 410 } ; Enter the total flow for all your injectors here in cc/Min ;****************************************************************************   squirtmul = { divider1 < 2 ? 2 : divider1 < 3 ? 1 : divider1 < 5 ? 0.5 : divider1 < 9 ? 0.25 : divider1 < 17 ? 0.125 : 1 }   squirts  = { alternate1 > 0 ? rpm100 / 0.6 * squirtmul : rpm100 * 2 * squirtmul / 0.6                                  } ; How many squirts per Sec   OpenWidth = { injOpen1 * 0.1 }                                            ; Pulse width for injector opening time   CCpHr    = { pulseWidth < 1 ? 1 : (fuelCC/60) * ((pulseWidth - OpenWidth)/1000) * squirts * 3600                                      } ; cc / hr   mphTemp  = { fuelADC < 1 ? 0 : (fuelADC * Speed) /127.5              }  ; MPH   mph      = { mphTemp < 1 ? 0 : mphTemp                                }  ; Ensure we get 0 mph   USgph    = {  CCpHr / 3785                                            }  ; US Gallons / Hr   USmpg    = { fuelADC < 1 ? 0 : mph < 1 ? 0 : mph / USgph              }  ; US Miles / Gallon   gph      = {  CCpHr / 4546                                            }  ; Real Gallons / Hr   mpg      = { fuelADC < 1 ? 0 : mph < 1 ? 0 : mph / gph                }  ; Real Miles / Gallon   L100in5th = {  (CCpHr/1000)*(3215/RpmHiRes)                            }  ; Litres/100 in 5th gear ;*****************************************************************************```

Now we look for the paragraph ' [GaugeConfigurations] ' :

Code:

```[GaugeConfigurations] ... ... ; Extra Stuff ... ...  mpgGauge          = mpg,              "MPG",                    "MPG",    0, 100, -1, -1, 100, 100, 1  YGForceGauge      = YForce,            "Y G-Force",              "G",      -3, 3, 0, 0, 2, 3, 3  XGForceGauge      = XForce,            "X G-Force",              "G",      -3, 3, 0, 0, 2, 3, 3  MAFGauge          = MAFVolts,        "Volts",                  "V",      0, 5, 0, 0, 5, 5, 2  bcDCGauge        = bcDC,            "Boost Control DC",      "%",      0, 100, -1, -1 999, 999, 0, 0  idleDCGauge      = idleDC,          "Idle DC",                "%",      0, 100, -1, -1 999, 999, 0, 0  RealDutyGauge1    = dutyCy1Real,      "Fuel Delivery 1",      "Flow",      0,  75,    -1,    -1,  75,  75, 1, 1  RealDutyGauge2    = dutyCy2Real,      "Fuel Delivery 2",      "Flow",      0,  75,    -1,    -1,  75,  75, 1, 1 ;-------------------------------------------------------------------------------```

And we add this line at the end of the paragraph:

Code:

```[GaugeConfigurations] ... ... ; Extra Stuff ... ...  mpgGauge          = mpg,              "MPG",                    "MPG",    0, 100, -1, -1, 100, 100, 1  YGForceGauge      = YForce,            "Y G-Force",              "G",      -3, 3, 0, 0, 2, 3, 3  XGForceGauge      = XForce,            "X G-Force",              "G",      -3, 3, 0, 0, 2, 3, 3  MAFGauge          = MAFVolts,        "Volts",                  "V",      0, 5, 0, 0, 5, 5, 2  bcDCGauge        = bcDC,            "Boost Control DC",      "%",      0, 100, -1, -1 999, 999, 0, 0  idleDCGauge      = idleDC,          "Idle DC",                "%",      0, 100, -1, -1 999, 999, 0, 0  RealDutyGauge1    = dutyCy1Real,      "Fuel Delivery 1",      "Flow",      0,  75,    -1,    -1,  75,  75, 1, 1  RealDutyGauge2    = dutyCy2Real,      "Fuel Delivery 2",      "Flow",      0,  75,    -1,    -1,  75,  75, 1, 1 L100in5thGauge    = L100in5th,        "F.Cons. in 5th",        "l./100", 0, 30, 0, 0, 10, 20, 1 ;-------------------------------------------------------------------------------```

Lastly we look for the ' [FrontPage] ' paragraph:

Code:

```[FrontPage] #if NARROW_BAND_EGO   egoLEDs        = 0.0, 1.0, 0.5 ; NB settings. #else   ; If you reverse these range values as you see below, then the LED   ; bar will work as you expect, high on the right, low on the left.   egoLEDs        = 4.0, 1.0, 2.5 ; WB settings. #endif   ; Gauges are numbered left to right, top to bottom.   ;   ;    1  2  3  4   ;    5  6  7  8 ;Gauge Setup 0     gauge1 = RpmHiResGauge     gauge2 = cltGauge     gauge3 = pulseWidth1Gauge     gauge4 = dutyCycle1Gauge     gauge5 = mapGauge     gauge6 = matGauge     gauge7 = afrGauge     gauge8 = advanceGauge```

And do this change:

Code:

```[FrontPage] #if NARROW_BAND_EGO   egoLEDs        = 0.0, 1.0, 0.5 ; NB settings. #else   ; If you reverse these range values as you see below, then the LED   ; bar will work as you expect, high on the right, low on the left.   egoLEDs        = 4.0, 1.0, 2.5 ; WB settings. #endif   ; Gauges are numbered left to right, top to bottom.   ;   ;    1  2  3  4   ;    5  6  7  8 ;Gauge Setup 0     gauge1 = RpmHiResGauge     gauge2 = cltGauge     gauge3 = pulseWidth1Gauge ;    gauge4 = dutyCycle1Gauge     gauge4 = L100in5thGauge     gauge5 = mapGauge     gauge6 = matGauge     gauge7 = afrGauge     gauge8 = advanceGauge```

Job done. Save the msns-extra.ini file. Next time you open Megatune you'll see a new virtual gauge showing instant fuel consumption in litres/100 km, something like this (increase brightness if necessary):

It will only be valid for the 5th gear, but it's precise and free.

OPTION TWO: FOR USMPG DISPLAY

Look for this paragraph towards the end of the file:

Code:

```;**************************************************************************** ;  CHANGE THESE TO SUIT YOUR CAR TO GET MPG, MPH, ETC. THIS WILL ONLY WORK WITH A SUITABLE ;  VEHICLE SPEED SENSOR CONNECTED TO MSnS-EXTRA CODE.   Speed = { 70 }    ; Change this to your actual speed @ 2.5V from VSS circuit   fuelCC = { 2168 } ; Enter the total flow for all your injectors here in cc/Min ;****************************************************************************   squirtmul = { divider1 < 2 ? 2 : divider1 < 3 ? 1 : divider1 < 5 ? 0.5 : divider1 < 9 ? 0.25 : divider1 < 17 ? 0.125 : 1 }   squirts  = { alternate1 > 0 ? rpm100 / 0.6 * squirtmul : rpm100 * 2 * squirtmul / 0.6                                  } ; How many squirts per Sec   OpenWidth = { injOpen1 * 0.1 }                                            ; Pulse width for injector opening time   CCpHr    = { pulseWidth < 1 ? 1 : (fuelCC/60) * ((pulseWidth - OpenWidth)/1000) * squirts * 3600                                      } ; cc / hr   mphTemp  = { fuelADC < 1 ? 0 : (fuelADC * Speed) /127.5              }  ; MPH   mph      = { mphTemp < 1 ? 0 : mphTemp                                }  ; Ensure we get 0 mph   USgph    = {  CCpHr / 3785                                            }  ; US Gallons / Hr   USmpg    = { fuelADC < 1 ? 0 : mph < 1 ? 0 : mph / USgph              }  ; US Miles / Gallon   gph      = {  CCpHr / 4546                                            }  ; Real Gallons / Hr   mpg      = { fuelADC < 1 ? 0 : mph < 1 ? 0 : mph / gph                }  ; Real Miles / Gallon ;*****************************************************************************```

In 'fuelCC' we must enter the injector flow, times number of injectors (if simultaneous injection). Or injector flow, times number of injectors, divided by 2 (if batch injection). For this Miata it is (205*4)/2 = 410 :

Code:

```;**************************************************************************** ;  CHANGE THESE TO SUIT YOUR CAR TO GET MPG, MPH, ETC. THIS WILL ONLY WORK WITH A SUITABLE ;  VEHICLE SPEED SENSOR CONNECTED TO MSnS-EXTRA CODE.   Speed = { 70 }    ; Change this to your actual speed @ 2.5V from VSS circuit   fuelCC = { 410 } ; Enter the total flow for all your injectors here in cc/Min ;****************************************************************************   squirtmul = { divider1 < 2 ? 2 : divider1 < 3 ? 1 : divider1 < 5 ? 0.5 : divider1 < 9 ? 0.25 : divider1 < 17 ? 0.125 : 1 }   squirts  = { alternate1 > 0 ? rpm100 / 0.6 * squirtmul : rpm100 * 2 * squirtmul / 0.6                                  } ; How many squirts per Sec   OpenWidth = { injOpen1 * 0.1 }                                            ; Pulse width for injector opening time   CCpHr    = { pulseWidth < 1 ? 1 : (fuelCC/60) * ((pulseWidth - OpenWidth)/1000) * squirts * 3600                                      } ; cc / hr   mphTemp  = { fuelADC < 1 ? 0 : (fuelADC * Speed) /127.5              }  ; MPH   mph      = { mphTemp < 1 ? 0 : mphTemp                                }  ; Ensure we get 0 mph   USgph    = {  CCpHr / 3785                                            }  ; US Gallons / Hr   USmpg    = { fuelADC < 1 ? 0 : mph < 1 ? 0 : mph / USgph              }  ; US Miles / Gallon   gph      = {  CCpHr / 4546                                            }  ; Real Gallons / Hr   mpg      = { fuelADC < 1 ? 0 : mph < 1 ? 0 : mph / gph                }  ; Real Miles / Gallon ;*****************************************************************************```

Now we add an user defined variable with its formula:

Code:

```;**************************************************************************** ;  CHANGE THESE TO SUIT YOUR CAR TO GET MPG, MPH, ETC. THIS WILL ONLY WORK WITH A SUITABLE ;  VEHICLE SPEED SENSOR CONNECTED TO MSnS-EXTRA CODE.   Speed = { 70 }    ; Change this to your actual speed @ 2.5V from VSS circuit   fuelCC = { 410 } ; Enter the total flow for all your injectors here in cc/Min ;****************************************************************************   squirtmul = { divider1 < 2 ? 2 : divider1 < 3 ? 1 : divider1 < 5 ? 0.5 : divider1 < 9 ? 0.25 : divider1 < 17 ? 0.125 : 1 }   squirts  = { alternate1 > 0 ? rpm100 / 0.6 * squirtmul : rpm100 * 2 * squirtmul / 0.6                                  } ; How many squirts per Sec   OpenWidth = { injOpen1 * 0.1 }                                            ; Pulse width for injector opening time   CCpHr    = { pulseWidth < 1 ? 1 : (fuelCC/60) * ((pulseWidth - OpenWidth)/1000) * squirts * 3600                                      } ; cc / hr   mphTemp  = { fuelADC < 1 ? 0 : (fuelADC * Speed) /127.5              }  ; MPH   mph      = { mphTemp < 1 ? 0 : mphTemp                                }  ; Ensure we get 0 mph   USgph    = {  CCpHr / 3785                                            }  ; US Gallons / Hr   USmpg    = { fuelADC < 1 ? 0 : mph < 1 ? 0 : mph / USgph              }  ; US Miles / Gallon   gph      = {  CCpHr / 4546                                            }  ; Real Gallons / Hr   mpg      = { fuelADC < 1 ? 0 : mph < 1 ? 0 : mph / gph                }  ; Real Miles / Gallon   USMPG5th  = {  235.2/((CCpHr/1000)*(3215/RpmHiRes))                    }  ; USMPG in 5th gear ;*****************************************************************************```

Now we look for the paragraph ' [GaugeConfigurations] ' :

Code:

```[GaugeConfigurations] ... ... ; Extra Stuff ... ...  mpgGauge          = mpg,              "MPG",                    "MPG",    0, 100, -1, -1, 100, 100, 1  YGForceGauge      = YForce,            "Y G-Force",              "G",      -3, 3, 0, 0, 2, 3, 3  XGForceGauge      = XForce,            "X G-Force",              "G",      -3, 3, 0, 0, 2, 3, 3  MAFGauge          = MAFVolts,        "Volts",                  "V",      0, 5, 0, 0, 5, 5, 2  bcDCGauge        = bcDC,            "Boost Control DC",      "%",      0, 100, -1, -1 999, 999, 0, 0  idleDCGauge      = idleDC,          "Idle DC",                "%",      0, 100, -1, -1 999, 999, 0, 0  RealDutyGauge1    = dutyCy1Real,      "Fuel Delivery 1",      "Flow",      0,  75,    -1,    -1,  75,  75, 1, 1  RealDutyGauge2    = dutyCy2Real,      "Fuel Delivery 2",      "Flow",      0,  75,    -1,    -1,  75,  75, 1, 1 ;-------------------------------------------------------------------------------```

And we add this line at the end of the paragraph:

Code:

```[GaugeConfigurations] ... ... ; Extra Stuff ... ...  mpgGauge          = mpg,              "MPG",                    "MPG",    0, 100, -1, -1, 100, 100, 1  YGForceGauge      = YForce,            "Y G-Force",              "G",      -3, 3, 0, 0, 2, 3, 3  XGForceGauge      = XForce,            "X G-Force",              "G",      -3, 3, 0, 0, 2, 3, 3  MAFGauge          = MAFVolts,        "Volts",                  "V",      0, 5, 0, 0, 5, 5, 2  bcDCGauge        = bcDC,            "Boost Control DC",      "%",      0, 100, -1, -1 999, 999, 0, 0  idleDCGauge      = idleDC,          "Idle DC",                "%",      0, 100, -1, -1 999, 999, 0, 0  RealDutyGauge1    = dutyCy1Real,      "Fuel Delivery 1",      "Flow",      0,  75,    -1,    -1,  75,  75, 1, 1  RealDutyGauge2    = dutyCy2Real,      "Fuel Delivery 2",      "Flow",      0,  75,    -1,    -1,  75,  75, 1, 1 USMPG5thGauge    = USMPG5th,          "USMPG in 5th",          "USMPG", 0, 30, 0, 0, 10, 20, 1 ;-------------------------------------------------------------------------------```

Lastly we look for the ' [FrontPage] ' paragraph:

Code:

```[FrontPage] #if NARROW_BAND_EGO   egoLEDs        = 0.0, 1.0, 0.5 ; NB settings. #else   ; If you reverse these range values as you see below, then the LED   ; bar will work as you expect, high on the right, low on the left.   egoLEDs        = 4.0, 1.0, 2.5 ; WB settings. #endif   ; Gauges are numbered left to right, top to bottom.   ;   ;    1  2  3  4   ;    5  6  7  8 ;Gauge Setup 0     gauge1 = RpmHiResGauge     gauge2 = cltGauge     gauge3 = pulseWidth1Gauge     gauge4 = dutyCycle1Gauge     gauge5 = mapGauge     gauge6 = matGauge     gauge7 = afrGauge     gauge8 = advanceGauge```

And do this change:

Code:

```[FrontPage] #if NARROW_BAND_EGO   egoLEDs        = 0.0, 1.0, 0.5 ; NB settings. #else   ; If you reverse these range values as you see below, then the LED   ; bar will work as you expect, high on the right, low on the left.   egoLEDs        = 4.0, 1.0, 2.5 ; WB settings. #endif   ; Gauges are numbered left to right, top to bottom.   ;   ;    1  2  3  4   ;    5  6  7  8 ;Gauge Setup 0     gauge1 = RpmHiResGauge     gauge2 = cltGauge     gauge3 = pulseWidth1Gauge ;    gauge4 = dutyCycle1Gauge     gauge4 = USMPG5thGauge     gauge5 = mapGauge     gauge6 = matGauge     gauge7 = afrGauge     gauge8 = advanceGauge```

Jod done. Save the msns-extra.ini file. Next time you open Megatune you'll see a new virtual gauge showing instant fuel consumption in USMPG, something like this (increase brightness if necessary):

It will only be valid for the 5th gear, but it's precise and free.

 SVOboy 10-09-2008 09:56 PM

Wow, this is neat stuff. I wonder if there's anyway to program it to detect the other gearing so that you could use it all the time, but I think that would require speed sensor input to compare against the rpms...

Thanks for all the great info!

 TELVM 10-10-2008 05:56 AM

Quote:
 Originally Posted by SVOboy (Post 66313) I wonder if there's anyway to program it to detect the other gearing so that you could use it all the time, but I think that would require speed sensor input to compare against the rpms...
By defect, Megasquirt lacks VSS and is physically unable to detect which gear is engaged, so the only way would be a virtual gauge for each gear (five or six total). As above but doing calculations and adding code for every gear.

The result would be something like this:

http://img03.picoodle.com/img/img03/...rm_db292fc.gif

You'd have to watch the gauge corresponding with the gear engaged at every moment. V.g. when in 3rd gear only the 'USMPG in 3rd gear' gauge would be true, the other four would lie.

 JustinHoMi 10-29-2008 12:58 AM

How, convenient, I have a 1.6 Miata :). Thanks for the info!

 djivesp 03-03-2009 05:33 PM

this is so awesome i had to register to say this!
And also ask a question :p
I dont know my gear or diff ratios, but i can find out exactly what RPM i am doing at certain GPS speed, can i use this information and plug it into the formula?

If the formula is establishing distance covered for every engine revolution in 5th then surely it can be done?

Thanks guys :thumbup:

 Southcross 04-28-2009 01:24 PM

bumping this for myself.... gotta set this up on my laptop when I get home

 djivesp 04-28-2009 02:35 PM

btw, it doesn't work on MS2 extra because it doesn't have the variables set up for it in the ini like MS1 extra does (for some reason). I got it working on MS2 extra after some ini modding :thumbup:.
small write-up here

 dcb 04-28-2009 02:37 PM

It *might* be worth it to add a speed signal to the cpu. I know I cover a lot of ground with the engine stopped.

 roadracer380 05-27-2009 02:51 PM

Quote:
 Originally Posted by djivesp (Post 101017) btw, it doesn't work on MS2 extra because it doesn't have the variables set up for it in the ini like MS1 extra does (for some reason). I got it working on MS2 extra after some ini modding :thumbup:. small write-up here
Nice work djivesp! Could you please email your MS2 ini file or something it can copy and paste to matasjeff@yahoo.com so that I can try it?

Also, is there a variable for changing fuel pressure used for vehicles with 1:1 vac/boost fuel pressure regulators?

Thanks,

Jeff

 Wonderboy 05-27-2009 06:28 PM

I put ms2 on a little thinkpad and created a RJ-45 female to DB9 female to extend my one stock SGII OBII cable to the serial port on my thinkpad. This failed, but I wonder if it is because I have a honda - I did a quick google search and found that some honda people either achieved no success with MS2, or had to do a lot of little tweaks to get it to work. Does anyone know about this or have any tips on where to proceed next? I'm pretty sure my cable is fine.

 djivesp 10-19-2009 06:28 PM

Hey all,
i'll see if i can dig up the ini for you roadracer (if you still need it), but the laptop it was on decided to suicide, i think i have a backup somewhere.
Does anybody know which numbers to change in the formula to get MPG with the UK gallon (4.5 litres) as opposed to the us gallon (3.8 liters ;))?

Also, anybody have any info with how to get this to work with tunerstudio not just megatune?

edit - i think i answered my own question DOH!! why didnt i look into this properly sooner - it's this line:
"USgph = { CCpHr / 3785 " - you change the 3785 to 4546.

editē - spent a bit of time trying to figure out TunerStudio aswell, and answered my own question once again, got it to work in tunerstudio :).
To get it to work with tunerstudio - just modify the mainController.ini file (exactly same format as megatune ini), located in this folder:
My Documents\TunerStudioProjects\{yourprojectname}\pr ojectCfg

More details with link to the ini is on this forum page (ms2 extra2):
http://msextra.com/viewtopic.php?f=101&t=30853

enjoy!

 roadracer380 08-29-2011 02:47 PM

That wouldbe great. My email is matasjeff@yahoo.com
Quote:
 Originally Posted by djivesp (Post 134771) Hey all, i'll see if i can dig up the ini for you roadracer (if you still need it), but the laptop it was on decided to suicide, i think i have a backup somewhere. Does anybody know which numbers to change in the formula to get MPG with the UK gallon (4.5 litres) as opposed to the us gallon (3.8 liters ;))? Also, anybody have any info with how to get this to work with tunerstudio not just megatune? edit - i think i answered my own question DOH!! why didnt i look into this properly sooner - it's this line: "USgph = { CCpHr / 3785 " - you change the 3785 to 4546. editē - spent a bit of time trying to figure out TunerStudio aswell, and answered my own question once again, got it to work in tunerstudio :). To get it to work with tunerstudio - just modify the mainController.ini file (exactly same format as megatune ini), located in this folder: My Documents\TunerStudioProjects\{yourprojectname}\pr ojectCfg More details with link to the ini is on this forum page (ms2 extra2): Megasquirt MSEXTRA / MS3EFI • Gear-based MPG gauge in MS1extra, why not MS2extra? (View topic) enjoy!

 All times are GMT -4. The time now is 11:28 AM.