Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Revision:
7:5f6e31faa08e
Parent:
6:6a04210a3f4f
Child:
8:ecf68db484af
--- a/SysMngmt.cpp	Fri Oct 10 20:24:22 2014 +0000
+++ b/SysMngmt.cpp	Fri Oct 10 20:59:36 2014 +0000
@@ -18,6 +18,7 @@
 #include "Watchdog.cpp"
 #include "FanPump.h"
 #include "DC_DC.h"
+#include "PollSwitch.h"
 
 //Possible problems in IMD coz change of counter
 //Possible problems in BatteryStatus coz change in library
@@ -267,17 +268,20 @@
 
 char sys_src_id = 4;                // source address of system management
 
-Watchdog wdt;
-
 int main() {
-    CANMessage rx_msg;    
+    CANMessage rx_msg;   
+    Watchdog wdt;
+     
     wdt.kick(10.0);
     pc1.baud(115200);
 
     FanPump fanPump(&rxBuffer);
     DC dc_dc(&fanPump, &rxBuffer);
+    PollSwitch pollSwitch(&rxBuffer);
     
     fanPump.start_update();
+    dc_dc.start_update();
+    pollSwitch.start_update();
 
     while(1)
     {