System Management code
Dependencies: CANBuffer mbed SystemManagement mbed-rtos
System Management code for Penn Electric Racing
Functions:
Controls Fans and Pumps via instruction from CAN Messages, ramps them up over time to prevent damage
Turns on/off DC-DC converter via instruction from CAN Messages
DC_DC/DC_DC.h
- Committer:
- martydd3
- Date:
- 2014-10-10
- Revision:
- 7:5f6e31faa08e
- Parent:
- 6:6a04210a3f4f
File content as of revision 7:5f6e31faa08e:
#ifndef _FILE_DC_DC_H #define _FILE_DC_DC_H #include "CANBuffer.h" #include "FanPump.h" #include "rtos.h" const int TX_DC_DC_ID = ((4 << 8) | 5); const int RX_DC_DC_ID = ((4 << 8) | 14); class DC{ public: DC(FanPump *fanPump, CANBuffer *can); //constructor takes function to shut down certain processes when off bool is_on(); void set(bool status); void start_update(); }; #endif