 dkjones96 Sweet! 04-08-2009, 08:06 AM
|
04-15-2009, 02:41 PM
|
#32
|
Registered Member
Join Date: Mar 2009
Posts: 1,139
|
Just for kicks I wrote up the algorithm I currently follow when driving. It's very similar to the last one. Just stays in coast mode once it enters it until the speed reaches the minimum allowable. Obviously I adjust it to account for stops and sharp curves. The GPS algorithm is for that info.
Repeat {
if( grade <= MIN_GRADE_FOR_COASTING) {
// on steep downhill
while( speed >= MIN_SPEED ) { coast; } } else if( speed <= MIN_SPEED ) { // very steep uphill, economy is not the concern
adjust throttle as needed to maintain MIN_SPEED; } else {
// slight uphill, level, or slight downhill
compute speed for maximum efficiency;
// for a level, this will be a cruise speed of around 50-55
// for slight uphill, this will be slower than the cruise speed
// for slight downhill, this will be faster than the cruise speed } }
__________________
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 |
|
» Fuelly Android Apps |
|
|