instant RPM function is commented out in mpguino code but is still there
maybe in newer versions it is removed, dont know...
I have working RPM in my mpguino
To make it show realistic rpm, I had to set injPulsesPer2Revolutions=1 in settings menu, before I think it was 2 so it showed me 2x more RPMs
function is this:
Quote:
unsigned long instantrpm(){
init64(tmp1,0,instInjCount);
init64(tmp2,0,120000000ul);
mul64(tmp1,tmp2);
init64(tmp2,0,1000ul);
mul64(tmp1,tmp2);
init64(tmp2,0,parms[injPulsesPer2Revolutions]);
div64(tmp1,tmp2);
init64(tmp2,0,instInjEnd-instInjStart);
div64(tmp1,tmp2);
return tmp1[1];
}
|