Worked over the timer scheduler a bit, toward the goal of enabling deep sleep mode. I estimate that I reduced the code's power consumption by anywhere between 20% and 40%, with a given configuration.
Quote:
Originally Posted by josemapiro
Hi t vago
It's great I had no idea it worked like that.
|
I figured this would be a useful addition to MPGuino. That, along with some sort of calibration mode for both distance and fuel, would go far in making MPGuino more user-friendly.
Quote:
Originally Posted by josemapiro
One change that I believe takes some confusion is in InjSize mL/min which could have an InjFlow text and use cc/min which seems to be more common in the specs of the injectors, what do you think.
|
Good idea. Done.
Quote:
Originally Posted by josemapiro
Another question, the InjSize mL/min does not allow a decimal number in my case, the injector has a value of 191.8 cc/min, I have to put "192" correct.
|
Yes, that is correct. With the number you gave, and assuming 4 cylinders, the two values differed by about 3 million microseconds/USgal.
I may have to increase the precision of this injSize parameter, such as making the units cc/min * 1000.
Quote:
Originally Posted by josemapiro
I think you mean microseconds/USGal
|
Nope.
step 1: value is in cc/min
step 2: value is in cc/min
step 3: value is in min/cc
step 4: value is in min/gal
step 5: value is in sec/gal
step 6: value is in microseconds/gal (value = value * 1000000 microseconds/sec)