 dkjones96 Sweet! 04-08-2009, 08:06 AM
|
04-04-2009, 12:52 PM
|
#1
|
Registered Member
Join Date: Mar 2009
Posts: 1,139
|
MPG Cruise Control Algorithm
After analyzing how I'd try and optimize fuel economy if I were limited to only the information available from the OBDII port, I came up with the following. I can think of a few ways to make it more involved, but it may not be necessary so I figured I'd run it by the more experienced hypermilers out there. A simple system couldn't take advantage of anticipation (speeding up before going uphill or coasting to stop signs), but one with GPS could in theory, so as a separate issue, I would love to see any thoughts you have for that algorithm as well. I hope my pseudo-code is clear. I didn't want to create a flowchart.
Repeat { if( speed <= MIN_SPEED ) {// very steep uphill, economy is not the concern
adjust throttle as needed to maintain MIN_SPEED; } else if( throttle <= MAX_EFFICIENT_THROTTLE ) {
// level travel, downhill, and shallow uphill
adjust throttle to be as low as possible to maintain at least LEVEL_CRUISE_SPEED; } else {
// moderately steep uphill
keep throttle at MAX_EFFICIENT_THROTTLE, allowing speed to diminish; }
}
__________________
Main Entry: co de pen dence - see codependency
co de pen den cy
Pronunciation: \kō-di-ˈpen-dən(t)-sē\
Function: noun
Date: 1979
: a psychological condition or a relationship in which a person is controlled or manipulated by another who is affected with a pathological condition (as an addiction to alcohol or heroin) ; broadly : dependence on the needs of or control by another
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Car Talk & Chit Chat |
|
|
|
|
|
» Fuelly iOS Apps |
No Threads to Display.
|
» Fuelly Android Apps |
|
|