MAP sense algorithm.

It's all about the code!
Post Reply
User avatar
abecedarian
Posts: 386
Joined: Fri Nov 15, 2013 10:49 am

MAP sense algorithm.

Post by abecedarian »

Thought I'd post something I'd mentioned elsewhere.

During first cranking, i.e. after a reset / power outage or whatever, over two known 'complete' revolutions, the ECU samples the map sensor at every tooth detect event on the flywheel. It then determines where the MAP reading is highest, as in most vacuum and stores that crankshaft angle. It then sets a "window" of 15-20 degrees before and after that crankshaft position where it performs a sample and smooth function of those 30-40 samples to arrive at a close approximation of what the ECU should use for calculations. These windows would be stored in eeprom for future reference so this would only have to be done once, or if the ECU detects the values are out of the range previously set. Following the initial setup, the ECU would not perform this test again, unless it is hard reset, as in after a firmware upgrade or forced by the user.

I haven't thought much about it since then, but it seemed plausible at the time, and in context.
You can lead the horticulture but you can't make them think.
User avatar
AndreyB
Site Admin
Posts: 14327
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: MAP sense algorithm.

Post by AndreyB »

Our current implementation uses user-defined averaging start angle and duration angle, but there is also a feature of showing the MAP graph (within one shaft revolution) on the console
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
abecedarian
Posts: 386
Joined: Fri Nov 15, 2013 10:49 am

Re: MAP sense algorithm.

Post by abecedarian »

So... basically what I suggested?
:oops:

Does it allow that, and correlate 'peak vacuum' crank angles on per cylinder basis?
You can lead the horticulture but you can't make them think.
Post Reply