I'm wondering if it should read like this:
Code:
IFR = lookup(B4001)(injector flow rate);
IPW = airmass / AFR / IFR * 1000;
if IPW + TF<= B9021(minimum transient pulsewidth) then
IPW = B9021;
else if IPW < B4003(minimum pulsewidth) then
IPW = B4004(default pulsewidth);
else if IPW < B4006(small pulse threshold) then
IPW = IPW + B4005(small pulse adder);
end
IPW = IPW + B3701(voltage/manvac offset)
IPW = IPW + TF(transient fueling modifiers);
IBPW = IPW;
The
if ... else if sequence selects
only one statement to do and then jumps to
end.
This is much simpler.
Are the
< correct, should any of those be
<= instead...?