Maths Channel to show active RPM and MAP cell

Post Reply
Hugh
Posts: 56
Joined: Thu May 19, 2016 8:54 pm

Maths Channel to show active RPM and MAP cell

Post by Hugh »

When looking at SView logs, I often find myself pondering which Cell was active.

Seemed to me that it might simplify the process if you used a Math channel to identify the cell in use.

Here are my Engine Speed Breakpoints.

Image

Here is how the maths channels display the Cell that you are working in.

Image

You will see there are a number of flat lines that represent the active cell, the cursor sows the engine RPM is 2538 and that the RPM cell is 2559 which matches one of the breakpoints.

I also did the same thing for the load cell in use.

I was a bit surprised that the lines between the breakpoints are tapered rather than being vertical, so there appears to be some sort of smoothing going on.

Here is how the formula I used was built up. if(rpm<600, 500, if(rpm<800, 700, if(rpm<1000, 900, )) etc etc. Same for the load cell.
RICE RACING
Posts: 448
Joined: Mon Feb 24, 2014 1:08 am

Re: Maths Channel to show active RPM and MAP cell

Post by RICE RACING »

Hi Hugh,
I am no maths wizard (get that out there at start!)
But the step if I do what you are is vertical if you set the mid point of each nested IF statement mid way between your break out points.
Obviously the ECU interpolates between the cells in relation to how far its into each respective one, and the good thing of your method is if you are in the center of the rpm step then you could apply the fuelMltCll for example fully to that cell assuming your tps or map is also in the center of it. And there are not other things that influence it obviously. Also I think you have Interpolate Mode on in SVIEW? turn that off and it will be vertical step.

Anyway great post by you! works and is handy, I am sure allot of us appreciate it :)
Attachments
works great
works great
screenshot.3.jpg (678.18 KiB) Viewed 7248 times
http://www.riceracing.com.au
https://www.youtube.com/riceracingdonmega
Real turbo road cars fast > reliable > durable
Water Injection Specialist
Hugh
Posts: 56
Joined: Thu May 19, 2016 8:54 pm

Re: Maths Channel to show active RPM and MAP cell

Post by Hugh »

Ahah,

Thanks Rice Racing.

I now know there is an interpolate mode

Image
Hugh
Posts: 56
Joined: Thu May 19, 2016 8:54 pm

Re: Maths Channel to show active RPM and MAP cell

Post by Hugh »

Been pondering whether the time Delta spent in each cell might be a simple record of whether any changes from one pull to the next have shown an improvement in performance.

Time and Delta time are shown to three decimal places in SView which may allow an opportunity to somehow display the answer.

Looking at the Life Racing Maths tutorial, there is mention of Integral expressions, copied below.

integral(x,condition)

Integrate x when conditions are true. Resets to 0 when condition is not met.
integral(vehicleSpeed,laptime()>0) =lap distance

The integral function is useful for counting durations as the integral of 1 will return a running clock in seconds.
e.g. var(vResetCond,0);
var(vMeasCond,0);
var(vTimeOn,0);
var(vTimeTotal,0);
vMeasCond=tps1>95;
vResetCond=lapTime<0.1;

vTimeOn=integral(vMeasCond,!vResetCond);
vTimeTotal=integral(1,!vResetCond);
vTimeOn/vTimeTotal
Post Reply