Everything there is to know about MegaTune Auto-Tune

Forum for discussing Tuner StudioMS tuning & datalogging software.
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.
Locked
efahl
Site Admin
Posts: 232
Joined: Mon Feb 16, 2004 3:15 pm
Location: San Clemente, California, USA
Contact:

Post by efahl »

whittlebeast wrote:Is that possible that that is the correct answer. Or is that a missfire feading raw fuel into the exhaust confusing the 02 ....
Well, if you read the manual... Oh, yeah, there isn't one. Anyhow, it would say something to that effect:

Beware that if you go so rich that the spark is blown out, the lambda sensor will read the unburned mixture as dead lean (what with all that oxygen still present) and the closed loop algorithm will attempt to add fuel, which the autotune algorithm will detect and adjust the VE bin richer, thus making a bad situation worse. Use with caution, this thing will not perform magic. (I'm not even convinced it will do anything useful. :) )

Eric
efahl
Site Admin
Posts: 232
Joined: Mon Feb 16, 2004 3:15 pm
Location: San Clemente, California, USA
Contact:

Post by efahl »

I've been playing with some things to enhance this thing and make it more safe. The variable used to define correction will be moved into the ini file, probably something like

Code: Select all

[AutoTune]
   table = veTable1Map
      corrector = egoCorrection ; Variable giving percent correction to drive autotuning.
I've also been playing with a parameter to limit how far a vertex can be adjusted, which I'm calling "lumpiness."

Code: Select all

[AutoTune]
   table = veTable1Map
      lumpiness = 5 ; percent
This will keep the vertex that is being tuned within 5% of the extremes of the four surrounding vertices, under the assumption that the table should be somewhat smooth and will be roughly tuned to start. Note that the limits are transient, so if autotune changes vertex A by +5%, then moves to adjacent B, which also goes +5%, then the limit when we return to A will now be 5% above B.

I will also be setting the default parameters to much more conservative values than the current defaults, so that unwitting use will have a lower probability of doing harm.

Comments welcome while this stuff is still in the oven.

Eric
MiseryQ
MegaSquirt Newbie
Posts: 22
Joined: Mon May 03, 2004 3:04 pm
Location: HamptonRoads,VA
Contact:

Post by MiseryQ »

Great work. I really like the lumpiness factor.

Is there an easy way to keep it from autotuning below the lowest ve bin?
I think that could be the reason for the decel leaning, even though it's slight.
Mike_Robert

Post by Mike_Robert »

MiseryQ wrote:Great work. I really like the lumpiness factor.

Is there an easy way to keep it from autotuning below the lowest ve bin?
I think that could be the reason for the decel leaning, even though it's slight.
I think that's handled by the "Y" parm:


Code:
[AutoTune] ; Users should copy this section to custom.ini to modify it.
table = veTable1Map ; Should be the map3d_id of a TableEditor entry.
; Vertex tolerance parameters
xRadius = 300
yRadius = 10

; Tuning block parameters
xLimits = 1000, 8000
yLimits = 20, 110

; Controller parameters
initialStartupInterval = 1.0
updateInterval = 1.0
proportionalGain = 0.5


"X" is RPM in all the ini files I've seen, although someone could have swapped them. Y is normally MAP, TP or load. The limit parameters box the tuning points, no changes will be made outside the box. The radius parameters dictate how close the operating point must be to the tuning point for autotune to operate, if the operating point falls outside this smaller box, then no action is taken.

Sayeth Eric.

-Mike
efahl
Site Admin
Posts: 232
Joined: Mon Feb 16, 2004 3:15 pm
Location: San Clemente, California, USA
Contact:

Post by efahl »

Above discussed parameters have been implemented in this release.

http://www.not2fast.com/megasquirt/mt/p ... _setup.exe

Note: The "allowAutoTune" setting has moved from the [TableEditor] section to the [AutoTune] section, as seen below.

Here is the complete list of settings (this is from megasquirt-I.ini), with their default values. Many more diagnostic messages are now produced in the tuning dialog, allowing you to monitor your settings...

Code: Select all

;-------------------------------------------------------------------------------
;--  Users should copy this section to custom.ini to modify it.  ---------------

[AutoTune]
   table = veTableMap ; Should be the map3d_id of a TableEditor entry.
      allowAutoTune = on
      corrector     = egoCorrection

      ; Vertex tolerance parameters
      xRadius = 200 ; rpm (probably)
      yRadius =   7 ; map (probably)

      ; Tuning block parameters
      xLimits = 1500, 4000 ; rpm (probably)
      yLimits =   60,   90 ; map (probably)
      zLimits =   10,  200 ; VE  (probably)

      ; Controller parameters
      initialStartupInterval = 1.0 ; seconds
      updateInterval         = 1.0 ; seconds
      proportionalGain       = 0.5
      lumpiness              = 5   ; percent
Last edited by efahl on Sat Sep 10, 2005 9:09 am, edited 1 time in total.
efahl
Site Admin
Posts: 232
Joined: Mon Feb 16, 2004 3:15 pm
Location: San Clemente, California, USA
Contact:

Post by efahl »

MiseryQ wrote:Is there an easy way to keep it from autotuning below the lowest ve bin?
I think that could be the reason for the decel leaning, even though it's slight.
Now is this a function of tuning outside the reasonable range (i.e., below idle MAP) or would a global set of Z-limits be better? I like the idea of global Z constraints, so let me work on that...

Eric
efahl
Site Admin
Posts: 232
Joined: Mon Feb 16, 2004 3:15 pm
Location: San Clemente, California, USA
Contact:

Post by efahl »

Ok, just added the zLimits (and editted the above post to reflect the ini settings). Fixing all the ini files took 10 times longer than writing the code...
poundinfire
MegaSquirt Newbie
Posts: 4
Joined: Wed Dec 15, 2004 4:50 pm
Location: Wetaskiwin, Ab, Ca

Post by poundinfire »

I just want to make sure I have my EGO settings correct to autotune to an AFR table. I am using MSNS-e 25n9.


Under "Exhaust Gas Settings"

EGO Sensor Type : Wideband
EGO Switch Point : 2.352
Ignition Events pe Step : 4
Controller Step Size : 5
Controller Authority :75
Active Above Coolant Temp : 71*C
Active Above RPM : 1300


Under "Lambda AFR Setting"

Change EGO Limit above (kpa) : 255
Change EGO Limit (+-) : 5

For VE Table 1 : ON
For VE Table 2 : Off*^(DT)
Control Algorithm for AFR tables : Speed Density
Use Target Tables : Always
efahl
Site Admin
Posts: 232
Joined: Mon Feb 16, 2004 3:15 pm
Location: San Clemente, California, USA
Contact:

Post by efahl »

poundinfire wrote:Ignition Events pe Step : 4
Controller Step Size : 5
Controller Authority :75
I would raise that first one to the 10-20 range, and drop the second two to 1% and 15%, respectively. This will slow changes down and make things much more stable so the autotune code doesn't overshoot and cause problems.

Eric
whittlebeast
Helpful Squirter
Posts: 147
Joined: Tue May 04, 2004 7:20 pm
Location: St Louis
Contact:

Post by whittlebeast »

Last night I was messing with Extra 025v2 and MT 619 I was not getting the option to Autotune

AW
Locked