Page 1 of 1

Fuel consumption

PostPosted: Mon Sep 25, 2006 5:35 pm
by m3n0ch3
Hi guys,

for people wanting fuel consumption in ecuedit: here is a line to add in logdefs.xml:

<parameter id="Fuel Consumption" storagetype="uint8" decimals="2" expr="((550*LP(&quot;Engine Speed&quot;)*LP(&quot;Fuel Injector #1 Pulse Width&quot;))/(1+(5000*LP(&quot;Vehicle Speed&quot;))))" metric="L/100km" desc="litre au 100"/>


Have fun ;)

Phil

PostPosted: Tue Sep 26, 2006 1:42 pm
by m3n0ch3
I did a few test runs and the results don't really make sens.

I double checked the formula and it seems right... anybody able to pin point why it would be off?

PostPosted: Tue Sep 26, 2006 9:42 pm
by epifan
Do you add < ..priority="100" > attribute as I say on ecuEdit forum?

<parameter id="Fuel Consumption" storagetype="uint8" decimals="2" expr="((550*LP(&quot;Engine Speed&quot;)*LP(&quot;Fuel Injector #1 Pulse Width&quot;))/(1+(5000*LP(&quot;Vehicle Speed&quot;))))" metric="L/100km" priority="100" desc="liter per 100km"/>

PostPosted: Wed Sep 27, 2006 3:46 am
by m3n0ch3
yes I did and I'll run the new test this morning when going to work ;)

PostPosted: Wed Sep 27, 2006 1:45 pm
by m3n0ch3
ok found out why the discrepency...

the time used for injector pulse width includes the injector latency.

substract 0.68ms from the injector pulse width and it suddenly makes a lot more sense ;)

Epifan... is there a way to add logic in there so we can cap out the result to a max value?

ex: at idle, the value of the formulas goes up in millions...

PostPosted: Wed Sep 27, 2006 11:01 pm
by ev8siv3
Can I get this for Miles Per Gallon? (US) ?

PostPosted: Thu Sep 28, 2006 12:18 am
by epifan
m3n0ch3 wrote:Epifan... is there a way to add logic in there so we can cap out the result to a max value?

ok, you can use IF(expr,true_res,false_res) function. But is not good in your complicated epression. I already add min(p1,p2), max(p1,p2) functions in expression calculator. So you cand download fixed version and try it.