accell enrichement problems

For discussing MicroSquirt (TM) configuration and tuning of fuel parameters (including idle valves, etc.).
Forum rules
Forum rules
Read the manual to see if your question is answered there before posting. If you have questions about MS1/Extra or MS2/Extra or other non-B&G code configuration or tuning, please post them at http://www.msextra.com The full forum rules are here: Forum Rules, be sure to read them all regularly.
kalvinlk
MegaSquirt Newbie
Posts: 8
Joined: Fri Jan 07, 2005 8:45 am
Location: portland, oregon

Post by kalvinlk »

Nevermind, it seems I have found the answer after catching up one some topics!

http://www.megasquirt.info/ms2/configure.htm#lag

I'll have to order the newer MS2, as my first generation MS2 can't support the new code. Out of curiosity, what version of the embedded code did this get implemented in?
Jedrik
Helpful Squirter
Posts: 78
Joined: Thu Oct 21, 2004 9:07 am
Location: Seattle WA
Contact:

Post by Jedrik »

I was noticing the battery correction was causing my cruse PW to oscilate enough to feel seat of the pants...

This is with v2.1 code. So I added the v2.3 stile lag factor

Code: Select all

   if(first_adc > 0)
          outpc.batt = (short)adcval;
   else
          outpc.batt += (short)((10 * (adcval - outpc.batt)) / 100);
With the Lagfactor hardcoded to 10. Still plenty fast for the voltage!

Here are the datalogs. No lagFactor left, with lag factor on the right.

Image
kalvinlk
MegaSquirt Newbie
Posts: 8
Joined: Fri Jan 07, 2005 8:45 am
Location: portland, oregon

Post by kalvinlk »

Good info! Is there anything else in the code I should be concerned with, or is it simple to just add a few lines, seeing as I don't have $70 to get a new MS2.
Jedrik
Helpful Squirter
Posts: 78
Joined: Thu Oct 21, 2004 9:07 am
Location: Seattle WA
Contact:

Post by Jedrik »

Took a quick look at the 1.31 code and the adc area seems to be the same so this method should work.
Post Reply