MarcB

Hi, 
I’m sure it worked before, but now when I calculate inj_base time multiplied with inj_m_lambda, added with the battery offset time (all others being 1 or 0), t_inj_total doesn’t add up… It looks like the lambda correction isn’t calculated (closed_loop_lambda is 1).

Any suggestions?

Quote 0 0
littleozfella
lambda correction is inj_m_lambda .  send me your log file, you have my email.  
Quote 0 0
MarcB
Hi littleozfella,
Yes I know, but in the logs it doesn't seem to alter anything
Quote 0 0
MarcB

I just checked, in real time when I enable/disable lambda correction, it definitely alters de fueling when enabled.

So could it be a logging problem, or calculating error?

Quote 0 0
littleozfella
logging wrong channel.. I have emailed you.
Quote 0 0
Tangent Engineering
Hi MarcB,

Your problem is that you are not logging at the correct channel. The final calculation channel is t_inj_b0_total  and or t_inj_b1_total if you are using banked injection. t_inj_total does not include inj_m_lambda or inj_a_t_tps, this was done to give an average trace for logging back in the day. 
Quote 0 0
MarcB

Hi Tangent Engineering,

That’s what Littleozfella also suggested, but now I’m not that sure anymore.

After I’ve upgraded the firmware(thanks to Littleozfella) and deleted all previous logs, it now logs correct values, I logged all channels, t_inj_b0, t_inj_b1, t_inj_total and all related fuel multipliers and adders, just to compare but in the end t_inj_total is showing me the correct outcome.


t_inj_b1 is always 0, as expected as I’m not using banked injection, t_inj_b0 is for most of the time equal to t_inj_total, just sometimes not, and when I do the calculation it’s t_inj_total which is correct.


What makes sense to me is that t_inj_total, is just what it says, the total amount of both banked injections b0 & b1, plus the fuel corrections. The differences I sometimes see between t_inj_b0 and t_inj_total, could be a difference in update time/moment of both variables, or maybe just a floating point error as computers are not that good in calculating fractional numbers.


Whatever it is, it’s working for me now, what I also like is that the updated firmware now has the ability to store ‘Learnt Base Fuel Maps’, which it didn’t had in my old firmware version, the only problem is that I cannot copy/paste them Ã°Å¸Ëœâ€š

Quote 0 0
littleozfella
Unless you have high logging rates you will not always see perfect in your maths. Also there is Accel fuel which may not be missed due to logging rate as this has small time of occurrence

Cheers. 
Quote 0 0
Tangent Engineering
Hi MarcB,
t_inj_b1_total is the final fuel calculation as sent to the injector. As stated you may have your logging rates too slow. 

I am assuming that you are using Caltool. Copy and paste works with no issues.
Quote 0 0