Treehouse Mbed Team / Mbed 2 deprecated APS_1U5x

Dependencies:   mbed

Revision:
3:d8948c5b2951
Parent:
2:46faae84b8b0
Child:
4:db38665c3727
--- a/src/main.cpp	Sun Nov 25 01:23:33 2018 +0000
+++ b/src/main.cpp	Tue Nov 27 17:47:57 2018 +0000
@@ -38,7 +38,7 @@
 #include "boards.h"
 
 unsigned int boardsActive;
-unsigned int v48, v24, v12;
+unsigned int v48, v24, v12; // Voltage divide ratio is a little low due to substituting 10k resistors in place of the 100k. The 100k caused the opamps to oscillate.
 unsigned int i48, i24, i12;
 
 int main()
@@ -49,17 +49,22 @@
    setBoardEnables(ALLOFF);
    setBoardWeights(ALLOFF); // RK: Maybe? Use hex value for boardWeights to highlight that it's an encoded value.
     
+   sprintf(strbuf, "\r\nAgility Power Systems DCM1 Rev 0.2"); //RK 10/26/2018
+   sendSerial(strbuf);
+   //sendCRLF();
+   menuPrompt(MENU_DCM1);
+    
    initSerial();
    initADC();
    menuRedraw();
- 
-   sprintf(strbuf, "\r\nAgility Power Systems DCM1 Rev 0.1"); //RK 10/26/2018
-   sendSerial(strbuf);
-   sendCRLF();
   
    while (1)
    {
       processCommand();
+      //myled = 1;
+      //wait(1.0);
+      //myled = 0;
+      //wait(1.0);
       
       /*if (hv_cmptr1 == 1 && hv_cmptr2 == 1 && (hv_en == ON))
       {