The field version of the solarnano grid on the ionQubes
Fork of SolarNanoGridv3 by
Diff: Battery/Battery.h
- Revision:
- 18:be77ad141fac
- Parent:
- 17:dc19b3b39790
- Child:
- 19:1a5447ecbda0
--- a/Battery/Battery.h Mon Jun 13 09:04:53 2016 +0000 +++ b/Battery/Battery.h Tue Jun 14 21:43:17 2016 +0000 @@ -71,12 +71,12 @@ * returns a string of the log directory */ char *getLogDirectory(); - + /** * Returns true if we are authorized to start charging. */ bool startCharging(void); - + /** * Returns true if we are checked in. */ @@ -120,6 +120,9 @@ volatile char checkedIn; volatile char flagGetTime; volatile char flagNextFile; + volatile char flagHubNotReady; /**< True if flagStartFileTx and MaxRT */ + volatile char flagStartFileTx; /**< Start of file transmission. 0 when all files done */ + volatile char flagDirFileName; volatile char flagSendFileName; volatile char flagSendFileSize; volatile char flagSendFile; @@ -127,6 +130,7 @@ volatile char flagGetMaxCharge; volatile char sendingFile; volatile bool startCharge; + volatile char flagCheckOut; // ********************** @@ -168,6 +172,12 @@ void sendFile(); void sendFileDone(); void setFlag(); + + /** + * Checks out. Sends O %d, ID to locker + * + */ + void checkOut(); /** * Retransmits the last data. *