Quote Originally Posted by joecar View Post
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...?
Now your splitting hairs. lol.
Another question that needs answering is when TF or the transient fuelling modifiers are actually added to the equation. Are they added to the initial IPW calculation, so minimum pulsewidth or small pulse adder are in effect afterwards like I added in blue?