I tried to make a custom PID to display boost pressure on a gauge control; the slot definition I used is:
*CLC-00-162 PSI 0 29.0 .1 "iff({SAE.MAP.kPa} > 100, ({SAE.MAP.kPa} - 100) / 100 * 14.696, 0)"
My Parameter Reference Number definition looks like this:
CALC.BOOST F008 CLC-00-162 "PSI" Air "Intake Manifold Boost Pressure"
And this doesn't work; when I use it on a log that has SAE.MAP > 100, I still get "zero" on my CALC.BOOST PID even in those areas where MAP was 150+.
Can anyone spot the error in my use of the iff function?
Mr. P.