I wasn't able to find a guide to these settings, and it seemed to work OK while cruising so I let it go, but I was getting some occillation at certain RPMs and loads.
What follows is my understanding and I welcome corrections if I'm misguided:
The total transport delay is the time difference between when fuel is injected, combusted, exhausted, read by the O2 sensor and then sent by the O2 sensor controller to MegaSquirt.
Total transport delay (ms) = Transport delay 1(ms) + Transport delay 2(ms)
However, Transport delay 2 time is calculated from the Transport delay 2 (rpm) bin in MegaTune.
I think it would be helpful if in MT the rpm bin for calculating Transport delay 2 would be labeled as "RPM Factor for Transport Delay 2" or some such. It's confusing to assign units of rpm for a time factor.
I derived an rpm to enter in this bin by viewing datalogs I had used for tuning AE and finding the time differential between the end of a too large "pump shot" and the deepest part of the resulting too rich AFR valley. I'm sure there is plenty of opportunity for error here, but it at least gave me a starting point. I averaged six data points to arrive at an rpm of 950.
Solve this equation to find rpm: (T x MAP x rpm)/12000 = rpm
Where:
- T = observed transport delay time (ms) - Transport delay 1 (ms)
MAP = MAP value in kPa at data point
rpm = rpm at data point (I averaged the rpm and MAP values from the two data points to get a single value)
I'm confused by the units displayed in MT for the PID control variables as percent is shown for each. I'm not sure what units should apply to the Proportional gain term. Is it dimensionless? Shouldn't the Integral and Derivitive parameters be in units of time?
Some information from Wikipedia:
I'm currently using:1.Kp: Proportional Gain - Larger Kp typically means faster response since the larger the error, the larger the feedback to compensate.
2.Ki: Integral Gain - Larger Ki implies steady state errors are eliminated quicker. The tradeoff is larger overshoot: any negative error integrated during transient response must be integrated away by positive error before we reach steady state.
3.Kd: Derivative Gain - Larger Kd decreases overshoot, but slows down transient response.
Effects of increasing parameters
Parameter:
. . . . Rise Time : . .Overshoot :Settling Time: S.S. ErrorSteady State?)
P: . . Decrease . . .Increase . . .Sm.Change . .Decrease
I: . . .Decrease . . .Increase . . . Increase . . . . Eliminate
D: . .Sm.Change .Decrease . . Decrease . . . .Small Change
10 ms
950 rpm
P = 25
I = 15
D = 5
I need to datalog more to see if these values need to be changed, but for an initial guess they seem to work pretty good. The occillation is gone, and the EGO correction moves to a value and holds.