View Single Post
Old 12-12-2016, 02:20 PM   #37 (permalink)
t vago
MPGuino Supporter
t vago's Avatar
Join Date: Oct 2010
Location: Cedar Rapids, IA
Posts: 1,766

The Karen-Mobile - '05 Dodge Magnum SXT
Team Dodge
90 day: 26.72 mpg (US)

Fiat Dakota - '00 Dodge Dakota SLT RWD Quad Cab
90 day: 16.67 mpg (US)

The Red Sled - '01 Dodge Durango SLT 4WD
90 day: 16.96 mpg (US)
Thanks: 799
Thanked 682 Times in 437 Posts
updated to latest code

Originally Posted by skybolt View Post
My first order of action will be to modify the loop time to allow for .01 sec resolution during the acceleration times, then see how badly that affects RPM, then look at putting in an RPM buffer so that dropping to zero takes 3 or 4 shortened loops.
Why? All acceleration times already have about 0.001 second resolution, as they stand now.

Do you want to change the overall period of the instantIdx trip variable? That is done by changing the loop time. Currently, it's set to 500 ms, but could be set to 250 ms (4 loops/sec) without overloading the loop. However, going beyond 4 loops/sec will not have the desired effect. Data gathering will not be affected, but your output time resolution will suffer as the loops themselves get overloaded.

I guess I really have no idea what you want to accomplish by adding this RPM buffer.

One more thing - you'll probably want to use the attached code. It's the latest version, but it does have some untested modifications that I have to verify.

Update: The current version of my MPGuino code may be found here.
The Fiat Dakota

The Karen-mobile

The Red Sled

Last edited by t vago; 01-06-2017 at 12:14 AM.. Reason: provided link to current code
  Reply With Quote