Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Committer:
martydd3
Date:
Sun Oct 19 22:46:46 2014 +0000
Revision:
10:db13782f05d9
Copied Kiran's calculations for monitoring batttery currents; To do: Test on car, Xbees, 10 Hz Can Message (what data is needed?)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
martydd3 10:db13782f05d9 1 #ifndef _FILE_CURRENTMONITOR_H
martydd3 10:db13782f05d9 2 #define _FILE_CURRENTMONITOR_H
martydd3 10:db13782f05d9 3
martydd3 10:db13782f05d9 4 #include "mbed.h"
martydd3 10:db13782f05d9 5 #include "rtos.h"
martydd3 10:db13782f05d9 6 #include "CANBuffer.h"
martydd3 10:db13782f05d9 7
martydd3 10:db13782f05d9 8 const int TX_CURRENT_ID = ((4 << 8) | 3);
martydd3 10:db13782f05d9 9
martydd3 10:db13782f05d9 10 class CurrentMonitor{
martydd3 10:db13782f05d9 11 public:
martydd3 10:db13782f05d9 12 CurrentMonitor(CANBuffer *can);
martydd3 10:db13782f05d9 13 void start_update();
martydd3 10:db13782f05d9 14
martydd3 10:db13782f05d9 15 private:
martydd3 10:db13782f05d9 16
martydd3 10:db13782f05d9 17 };
martydd3 10:db13782f05d9 18 #endif