kh
Dependencies: mbed PinDetect Servo
Diff: powerManagement.cpp
- Revision:
- 2:04bbd14722bd
- Parent:
- 1:2c365f6da61d
--- a/powerManagement.cpp Sat Nov 10 20:08:46 2018 +0000 +++ b/powerManagement.cpp Mon Nov 12 23:36:11 2018 +0000 @@ -1,31 +1,32 @@ -/* -* Authors: Group 4 Adam Elghor, Brian Kaplan, Sayak Chatterjee, Moraa Onwonga -* Purpose: Controls Input and Output Data -* Language: C -*/ -#include "powerManagement.h" -#include "parameters.h" - -int batteryLevels; +/* +* Authors: Group 4 Adam Elghor, Brian Kaplan, Sayak Chatterjee, Moraa Onwonga +* Purpose: Controls Input and Output Data +* Language: C +*/ +#include "powerManagement.h" +#include "parameters.h" + +int batteryLevels; + +/* +* Function: powerSavingMode +* -------------------- +* Controls what is on while the safe is on this mode +*/ +void powerSavingMode() { +//however we decide to implement +} + +/* +* Function: getBatteryLevels +* -------------------- +* Get the battery level for the safe +* +* returns: the battery level for the safe +* +*/ +int getBatteryLevels() { + //EDIT LATER maybe have it send a notification in the future + return batteryLevels; +} -/* -* Function: powerSavingMode -* -------------------- -* Controls what is on while the safe is on this mode -*/ -void powerSavingMode() { -//however we decide to implement -} - -/* -* Function: getBatteryLevels -* -------------------- -* Get the battery level for the safe -* -* returns: the battery level for the safe -* -*/ -int getBatteryLevels() { - //EDIT LATER maybe have it send a notification in the future - return batteryLevels; -}