Fuel consumption

User topics relating to software that logs data from ECUs

Moderator: Freon

Fuel consumption

Postby m3n0ch3 » Mon Sep 25, 2006 5:35 pm

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
m3n0ch3
 
Posts: 49
Joined: Fri Aug 11, 2006 11:46 am

Postby m3n0ch3 » Tue Sep 26, 2006 1:42 pm

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?
m3n0ch3
 
Posts: 49
Joined: Fri Aug 11, 2006 11:46 am

Postby epifan » Tue Sep 26, 2006 9:42 pm

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"/>
epifan
 
Posts: 197
Joined: Sat Nov 26, 2005 1:23 am

Postby m3n0ch3 » Wed Sep 27, 2006 3:46 am

yes I did and I'll run the new test this morning when going to work ;)
m3n0ch3
 
Posts: 49
Joined: Fri Aug 11, 2006 11:46 am

Postby m3n0ch3 » Wed Sep 27, 2006 1:45 pm

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...
m3n0ch3
 
Posts: 49
Joined: Fri Aug 11, 2006 11:46 am

Postby ev8siv3 » Wed Sep 27, 2006 11:01 pm

Can I get this for Miles Per Gallon? (US) ?
ev8siv3
 
Posts: 159
Joined: Fri Mar 24, 2006 11:27 am

Postby epifan » Thu Sep 28, 2006 12:18 am

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.
epifan
 
Posts: 197
Joined: Sat Nov 26, 2005 1:23 am


Return to Data Logging Software

Who is online

Users browsing this forum: No registered users and 6 guests