View Single Post
Old 03-20-2009, 11:37 PM   #593 (permalink)
esoneson
EcoModder Student
 
esoneson's Avatar
 
Join Date: Nov 2008
Location: Youngsville, NC
Posts: 117
Thanks: 11
Thanked 14 Times in 13 Posts
Throttle vs PWMDuty vs Current

Paul,

There may be another variable that you will want to incorporate into this algorithm. You will probably want to be able to limit the rate of change of speed (or pwmDuty or Current). I.e. limit accelleration. Or have an acceleration curve (when speed is very slow keep acceleration low, when higher allow higher rates of acceleration to keep from jerking the car right from the git-go. Also if in reverse, then acceleration should also be tamed.

For the future: selectable acceleration curves from granny to grandprix

EDIT: Also, for deceleration you might want to be more aggressive about the adjustment. If you see the cop in your rear view mirror and take your foot off the accelerator, you want instant response, no?

Eric
__________________
1995 BMW 318i EV in the making

Last edited by esoneson; 03-20-2009 at 11:43 PM..
  Reply With Quote