Oh crap. I forgot that your throttle is inverted. I almost sent you the wrong code. PHEW. I'll try to find some time today to make the modification so it goes 5k = zero throttle and 0k = max throttle. There will be a little dead zone, so as to guarantee that the throttle contactor closes well BEFORE the throttle is considered nonzero. You definitely don't want the throttle to be nonzero, and the poor pwm ramping up to 100% in the vain attempt to see a nonzero current feedback (no current can flow when the contactor is closed).
Last edited by MPaulHolmes; 07-14-2014 at 02:51 PM..
|