L2TLOG2TUNE
← Documentation

Auto Tuning

Every sample is classified into a zone (Idle, Cruise or Boost) from MAP, RPM and VSS.

Sensor glitches, deceleration and unstable samples (RPM, MAP or VSS moving faster than the stability windows allow) are excluded, so corrections only come from clean, settled data.

Attribution uses a weighted algorithm: each sample is split across the four VE cells bracketing its operating point with bilinear weights, so a sample between cells contributes to each in proportion to how close it sits.

Alternatively the cell zone gate credits only samples near a cell's centre (Link-style active zone area) and drops the rest.

The engine then runs three passes, one per zone, and where passes overlap on a cell, Boost wins over Cruise and Cruise over Idle.

Per cell, the error against target is averaged over every hit and the VE value is scaled toward target, damped by the preset's smoothing:

e=AFRmeasuredAFRtarget−1e = \frac{AFR_{measured}}{AFR_{target}} - 1 VEnew=VEold×(1+eˉ⋅ksmooth⋅kvar)VE_{new} = VE_{old}\times\left(1 + \bar{e}\cdot k_{smooth}\cdot k_{var}\right)

where eˉ\bar{e} is the cell's average error, ksmoothk_{smooth} the preset smoothing factor and kvark_{var} the variance multiplier. Noisy cells are protected by the spread of their error:

σ=∑e2n−eˉ 2\sigma = \sqrt{\frac{\sum e^{2}}{n} - \bar{e}^{\,2}}

Targets come from the AFR target table in the loaded BIN when one is tuned (blended over MAP and RPM the same way as cell attribution), otherwise from the per-zone targets in Settings.

The target used for each sample is written into the log, so playback shows exactly what the correction aimed at.

The learning database


The numbers

Zones

Zone Condition
Idle RPM 400 to 1100 and VSS under 8 kph
Boost MAP at or above 0.3 psi gauge, RPM at least 1300
Cruise VSS at or above 8 kph and MAP under 0.3 psi
Decel (excluded) MAP under -9.0 psi and VSS over 8 kph
Glitch (excluded) TPS, MAP or RPM spiking faster than a sensor can move, or AFR outside 9.0 to 20.0

Stability windows

Samples moving faster than these are excluded as unstable.

RPM VSS (kph) MAP (psi)
Default 100 2.0 0.40
Cruise (relaxed) 200 2.0 0.80
Raw preset 400 20 5.0

Presets

Preset Min hits (Idle/Cruise/Boost) Smoothing (Idle/Cruise/Boost) Variance skip Variance reduce Well-tuned
Conservative 50 / 30 / 10 0.20 / 0.30 / 0.45 0.15 0.10 2%
Moderate 30 / 20 / 5 0.30 / 0.40 / 0.55 0.18 0.12 2%
Aggressive 15 / 10 / 3 0.45 / 0.55 / 0.70 0.22 0.15 2%
Raw 3 / 3 / 3 1.00 / 1.00 / 1.00 0.35 0.20 2%

Custom exposes every parameter.

Default targets

Used when the loaded BIN has no tuned AFR target table. All configurable per profile.

Zone MAP (psi gauge) Default AFR
Idle zone = Idle 14.8
Vacuum under -1.8 14.7
Part throttle -1.8 to 1.5 12.0
Light boost 1.5 to 8.0 11.8
Full boost over 8.0 11.8

Learning database confidence

Graded on accumulated weighted hits per cell.

Confidence Weighted hits
Very high 100+
High 50 to 99
Medium 20 to 49
Low 10 to 19
Very low under 10