Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: src/main.cpp
- Revision:
- 7:860b3a8275cb
- Parent:
- 6:39442d493098
- Child:
- 8:d3d7dca419b3
--- a/src/main.cpp Mon Dec 03 01:03:14 2018 +0000 +++ b/src/main.cpp Wed Dec 05 00:20:34 2018 +0000 @@ -56,23 +56,27 @@ int main() { //int stopExecuted = 0; - + myled = 0; extchlat = OFF; wr_out_code = setBoardEnables(ALLOFF); + running = FALSE; //setBoardEnables((unsigned int *)alloff); en_out_code = 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.3"); //RK 10/26/2018 + initSerial(); + sprintf(strbuf, "\r\nAgility Power Systems DCM1 Rev 0.35"); sendSerial(strbuf); //sendCRLF(); menuPrompt(MENU_DCM1); - initSerial(); - initDRT(); + initDRT(); // Display Refresh Timer + initADC(); getADCvolts(); getADCamps(); menuRedraw(); + + masterTimer.start(); while (1) { @@ -84,7 +88,8 @@ if(updateReady){ updateReady = FALSE; updateTerminal(); // May want to gate this call when we run a headless system. - loopTime = masterTimer.read_ms();// - loopTime; + //loopTime = masterTimer.read_ms();// - loopTime; + myled = !myled; } if(running){