collin80 / GEVCU

Generalized Electric Vehicle Control Unit
114 stars 56 forks source link

Arduino due: CanHandler, TickHandler finished, CanThrottle first debug messages #17

Closed neuweiler closed 11 years ago

neuweiler commented 11 years ago

The CanHandler now works and classes that inherit CanObserver can now register themselfes to recieve messages. The TickHandler was adjusted to support the same observer pattern like CanHandler. Classes which want to be triggered on a certain interval can implement TickObserver and register themselves at TickHandler. First working draft of can based throttle in CanThrottle.

requires fix for lock-up in void CANRaw::sendFrame(TX_CAN_FRAME& txFrame) (when adding the interrupt).