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:
Fri Nov 07 21:09:50 2014 +0000
Revision:
22:fc802e7715f8
CANController to link DC_DC and FanPump, as well as listen to CAN Messages (since only these 2 functions act based on incoming messages)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
martydd3 22:fc802e7715f8 1 #ifndef _FILE_DC_DC_H
martydd3 22:fc802e7715f8 2 #define _FILE_DC_DC_H
martydd3 22:fc802e7715f8 3
martydd3 22:fc802e7715f8 4 #include "CANBuffer.h"
martydd3 22:fc802e7715f8 5 #include "FanPump.h"
martydd3 22:fc802e7715f8 6 #include "rtos.h"
martydd3 22:fc802e7715f8 7
martydd3 22:fc802e7715f8 8 const int TX_DC_DC_ID = ((0x4 << 8) | 0x01);
martydd3 22:fc802e7715f8 9 const int RX_DC_DC_ID = ((0x4 << 8) | 0x90);
martydd3 22:fc802e7715f8 10
martydd3 22:fc802e7715f8 11 class DC{
martydd3 22:fc802e7715f8 12 public:
martydd3 22:fc802e7715f8 13 DC(); //constructor takes function to shut down certain processes when off
martydd3 22:fc802e7715f8 14 bool is_on();
martydd3 22:fc802e7715f8 15 void set(bool status);
martydd3 22:fc802e7715f8 16 };
martydd3 22:fc802e7715f8 17
martydd3 22:fc802e7715f8 18 #endif