Penn Electric Racing / Mbed 2 deprecated SystemManagement

Dependencies:   mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP

Fork of SystemManagement by Martin Deng

Revision:
22:fc802e7715f8
Parent:
20:3dfa7e9461a0
--- a/SerialDiagnostics/SerialDiagnostics.cpp	Fri Nov 07 01:26:37 2014 +0000
+++ b/SerialDiagnostics/SerialDiagnostics.cpp	Fri Nov 07 21:09:50 2014 +0000
@@ -77,11 +77,21 @@
         }
         
     // Reading Coulomb Counter
-        
         padCenter(line, max_charsPerLine-2, " ", ' '); ADD_LINE     // Generate blank line 
         padCenter(line, max_charsPerLine-2, " CoulombCounter ", '*'); ADD_LINE
         
-        sprintf(temp, "Current: %f ampHours: %f Capacity: %f SOC: %f", coulombCounter.current(), coulombCounter.ampHours(), coulombCounter.capacity(), coulombCounter.SOC()); ADD_SPRINTF_LINE
+        sprintf(temp, "Current: %f ampHours: %f ", coulombCounter.current(), coulombCounter.ampHours()); ADD_SPRINTF_LINE
+        sprintf(temp, "Capacity: %f SOC: %f ", coulombCounter.capacity(), coulombCounter.SOC()); ADD_SPRINTF_LINE
+        
+    // Reading DC_DC
+        padCenter(line, max_charsPerLine-2, " ", ' '); ADD_LINE     // Generate blank line 
+        padCenter(line, max_charsPerLine-2, " DC-DC Converter ", '*'); ADD_LINE
+        
+        sprintf(temp, "DC Converter on: %d ", dc.is_on()); ADD_SPRINTF_LINE
+        
+    // Reading FanPump
+        padCenter(line, max_charsPerLine-2, " ", ' '); ADD_LINE     // Generate blank line 
+        padCenter(line, max_charsPerLine-2, "  ", '*'); ADD_LINE
         
         // Write it all at once to output tx buffer
         for (int i = 0; i < strlen(buff); i++) {