PNI
/
BatteryESRTester
First working, tested and calibrated unit
Diff: main.cpp
- Revision:
- 4:f7cc009aed74
- Parent:
- 3:a170b248ead8
--- 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");