Hi, is there a way to either integrate a channel over time, or to update a value, such that the new value is the old value plus another channel?
For example, t = 0.998s and channel 1 = 10 and channel 2 = 3, then at t = 1.000s, make channel 1 = previous value plus channel 2, ie 10 + 3 so channel 1 reports 13.
Thank you for the response. Both questions were aimed at trying to do he same thing, convert a fuel flow (cc/min) into a total fuel flow, ie L for the virtual fuel tank. The Data Master tip is handy, but won’t work in this case.
Think I might have to get an arduino or something to do this, since I can’t see a way to do this via my ECU (Megasquirt 3). Thanks for the help.
I might play around with increasing the frequency of the calculation, but I don’t think it should be necessary, since the ECU is averaging the fuel flow over the 1000ms.
Could you explain how this works what each parameter does and what is the logic for doing it that way? I want to do something similar in my case the application will be to compare the mass flow from the MAF and the mass flow calculated from MAP and make sure they both stay within certain ratio, if the ratio is too big there will be a boost leak alert, I was thinking I could integrate 5 seconds of flow and compare both values after the 5 seconds compare the values and reset the whole sequence, if at any point the ratio is exceeded the alert gets triggered