collin80 / GEVCU

Generalized Electric Vehicle Control Unit
114 stars 56 forks source link

Throttle calibration inoperable with queued timer #21

Closed collin80 closed 11 years ago

collin80 commented 11 years ago

Recent changes to implement queuing on the timer ticks causes the throttle calibration to fail. It will stick at whichever throttle value was current when the calibration was started - the throttle value never updates. Proper operation returns of queuing is disabled.

collin80 commented 11 years ago

Found that ThrottleDetector was not working because it blocks the code execution path and the global loop never gets called. This prevented any ticks from ever getting serviced. A quick work around solution of directly calling the tick handler processor was used to fix this. This is probably not a good, permanent solution but it does solve the problem for now.