Thread: Super MPGuino?
View Single Post
Old 02-06-2011, 01:39 PM   #98 (permalink)
meelis11
EcoModding Apprentice
 
meelis11's Avatar
 
Join Date: Feb 2009
Location: Estonia
Posts: 199

Green frog - '97 Audi A4 Avant 1.9TDI 81kW
Diesel
90 day: 43.1 mpg (US)
Thanks: 19
Thanked 40 Times in 28 Posts
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];
}
  Reply With Quote