Remove problematic filter on 4g63 decoder

This commit is contained in:
Josh Stewart 2015-10-02 15:51:43 +10:00
parent 864d573ce4
commit 70fc983e12
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ int getRPM_4G63()
noInterrupts();
revolutionTime = (toothOneTime - toothOneMinusOneTime); //The time in uS that one revolution would take at current speed (The time tooth 1 was last seen, minus the time it was seen prior to that)
interrupts();
triggerFilterTime = revolutionTime >> 5;
//triggerFilterTime = revolutionTime >> 5; PROBLEMATIC!!!
return ldiv(US_IN_MINUTE, revolutionTime).quot; //Calc RPM based on last full revolution time (uses ldiv rather than div as US_IN_MINUTE is a long)
}
int getCrankAngle_4G63(int timePerDegree)