ESE350 project, Spring 2016, University of Pennsylvania
Dependencies: Adafruit9-DOf Receiver mbed-rtos mbed
Diff: main.cpp
- Revision:
- 49:59c3427e6838
- Parent:
- 47:ae478c380136
- Child:
- 50:c9831bb5a660
diff -r 0346cdff12a7 -r 59c3427e6838 main.cpp --- a/main.cpp Fri May 06 01:44:29 2016 +0000 +++ b/main.cpp Fri May 06 13:54:18 2016 +0000 @@ -128,6 +128,7 @@ if (battery.read() < threshold_adc) { printf("low battery! %f\r\n", battery.read() * saturating_voltage); batteryLed = 1; + if (battery.read() < emergency_adc) { emergencyShutdown(); return true;