Gear-based MPG gauge in MS1extra, why not MS2extra?

All questions about MS2/Microsquirt/Microsquirt module. See also MS2/Extra manuals

Moderators: daxtojeiro, muythaibxr, jsmcortina

Gear-based MPG gauge in MS1extra, why not MS2extra?

Postby djivesp » Thu Apr 02, 2009 3:49 pm

Hi all!
I have just registered and hopefully will have some valuable experience to add to this forum in due course when i have my MS tuned and happy :D .

But for now i have a question.

I hope it is self explanatory in the title.

The page below describes how to add MPG display to MS1-extra and works perfectly as shown in the youtube vid. Seems MS1-extra has a "half-way-there" implementation.
http://ecomodder.com/forum/showthread.php/how-get-instant-fuel-consumption-megasquirt-5474.html

I want to do the same to my MS2-extra code, but MS2-extra doesn't seem to have any references to MPG, and after comparing the 2 ini files and adding the same code to my MS2 ini, i have error codes when starting Megatune.

So is there a way to get this gear-based MPG display for MS2-extra?

Thanks all.
User avatar
djivesp
MS/Extra Newbie
 
Posts: 14
Joined: Thu Apr 02, 2009 3:30 pm

Re: Gear-based MPG gauge in MS1extra, why not MS2extra?

Postby FSG_PB_Patrick » Fri Apr 03, 2009 3:48 am

For that MPG gauge you need the proper interface within MS2, e.g. Variables like Speed,...
Just changing the megatune ini to import variables that are non-existing won't get you anywhere :lol:
And MS1 inis are not compatible with MS2 inis.

Anyways there's a traction control under development. It will be easy to send up a speed value once it's release status.
Patrick
--------------------
Formula Student Cars MS1/MS2:
Suzuki SV650S, Suzuki GSR600K3,
http://msruns.com/viewtopic.php?f=93&t=22782
--------------------
Projects:
Nissan Primera P11 with SR20DE (SR20VE 20V) MS2
FSG_PB_Patrick
Master MS/Extra'er
 
Posts: 557
Joined: Fri Apr 13, 2007 10:50 am
Location: Paderborn, Germany

Re: Gear-based MPG gauge in MS1extra, why not MS2extra?

Postby djivesp » Fri Apr 03, 2009 4:11 am

ok, i see, thanks :)
that sounds good, it seems i'll have to hang on for it.
I've done a little more on it and added the same variables into the ms2 ini, seems they are in the same format. No errors upon start up now and the gauge comes up on the main screen, will start the engine later to see if i get any luck. Unlikely though, since you mention they aren't compatible :(
User avatar
djivesp
MS/Extra Newbie
 
Posts: 14
Joined: Thu Apr 02, 2009 3:30 pm

Re: Gear-based MPG gauge in MS1extra, why not MS2extra?

Postby djivesp » Fri Apr 03, 2009 8:04 am

It works !!! :yeah!:
Basically, you copy and paste the whole MPG calculation section to the MS2 extra ini file so that section looks like the MS1 extra ini.
Then add the variables "divider1", "alternate1", "injOpen1", "fuelADC" with their descriptions, and change the "rpmHiRes" variable name in the last section to just "rpm".
Be aware the variable names are case sensitive.
Then you create the gauge according to instructions on ecomodder once again.

I'm no programmer and to be honest i'm quite surprised that it works, but it works hooray!

I have uploaded the modified ini file if anybody wants to use it :) You probably just need to get rid of the file extension and activate it via Megatune Configurator.
mind you it is tailored to my injector flow rate, 5th gear ratio, final drive and wheel circumference.

heres a pic of it idling. Sorry about the glare (the screen is in my dash lol):

Image

Image
Attachments
megasquirt-ii ini ms2extra mpg.ini
Gear-based MPG working with MS2Extra
(107.04 KiB) Downloaded 16 times
User avatar
djivesp
MS/Extra Newbie
 
Posts: 14
Joined: Thu Apr 02, 2009 3:30 pm


Return to MS2/Extra, MS2, Microsquirt and Microsquirt module support

Who is online

Users browsing this forum: JonE30 and 1 guest