Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
CurrentMonitor/CurrentMonitor.h@10:db13782f05d9, 2014-10-19 (annotated)
- 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?
| User | Revision | Line number | New 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 |
