System Management code

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Revision:
39:ddf38df9699e
Parent:
38:8efacce315ae
--- a/DataStructures/Headers/OperatingInfo.h	Sat Feb 07 08:54:51 2015 +0000
+++ b/DataStructures/Headers/OperatingInfo.h	Wed Feb 11 23:09:57 2015 +0000
@@ -7,8 +7,8 @@
 
 enum OperatingMode {
     // MODES
-    FAULT=0,
-    OKAY=1,
+    OKAY=1<<0,
+    FAULT=1<<1,
 };
 
 // Items here will prevent moving from STANDBY to IDLE
@@ -81,15 +81,7 @@
         char imd;
         char ams;
     } latch;
-    
-    struct MsgCounter {     // Telemetry tracking
-        unsigned int msgIn;
-        unsigned int msgOut;
-        float rateOut;
-    };
-    struct MsgCounter xbee1;
-    struct MsgCounter xbee2;
-    
+
     char switchState;
     float internalTemp;
 };