PNI
/
BatteryESRTester
First working, tested and calibrated unit
Revision 4:f7cc009aed74, committed 2017-03-27
- Comitter:
- ruairilong
- Date:
- Mon Mar 27 21:01:21 2017 +0000
- Parent:
- 3:a170b248ead8
- Commit message:
- Format code and remove unused functions.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r a170b248ead8 -r f7cc009aed74 main.cpp --- a/main.cpp Mon Mar 27 21:00:03 2017 +0000 +++ b/main.cpp Mon Mar 27 21:01:21 2017 +0000 @@ -32,7 +32,6 @@ //USBMouse mouse; USBKeyboard mbedKeyBoard; - // Variables for Heartbeat and Status monitoring PwmOut myled1(LED1); PwmOut myled2(LED2); @@ -56,9 +55,6 @@ #else #define V_SCALE 3.3F #endif - -Ticker heartbeat; - // Parameters #define PULSEWIDTH 1.0f // seconds char serial_inchar,waiting; @@ -69,20 +65,16 @@ waiting = 0; } - int main() { float OpenVoltage, LoadVoltage, Esr; - pc.baud(115200); printf("Battery ESR Tester\n\r"); pc.attach(&OnSerial); - MOSFET = 0; LED = 0; - - + #if 1 // 0 = Calibration Mode, 1= Discharge test mode printf("Test Mode\n\r");