PDA

View Full Version : Custom PID: What functions can you use?



2002_z28_six_speed
September 3rd, 2007, 08:01 AM
I looked all over the site. Can anyone direct me to the types of mathematical functions that you can use when making a custom PID?

I would like to check one variable to help determine the outcome of the PID. Possibly, do some filtering/refining during the logging. Just not sure of the syntax of used in EFILive.


E.G.

If ( [This GM PID] > 0){
Custom PID ~= Custom PID
};

Just a random example. Not applied to what I want to achieve.
Thank you in advance.

joecar
September 3rd, 2007, 04:20 PM
...
iff(condition, true_value, false_value)

condition: an expression.
true_value: an expression.
false_value: an expression.

Return value: true_value if condition evaluates to not zero, false_value if condition evaluates to zero.
...
You want to do this:

iff({GM.PID} > 0, ~{CUSTOM.PID}, {CUSTOM.PID})
Pids are always enclosed in braces { }.

2002_z28_six_speed
September 3rd, 2007, 05:05 PM
Oh neat! Is there a file with a complete list somewhere?