The field version of the solarnano grid on the ionQubes
Fork of SolarNanoGridv3 by
Diff: Battery/Battery.h
- Revision:
- 17:dc19b3b39790
- Parent:
- 13:de43f28c0365
- Child:
- 18:be77ad141fac
--- a/Battery/Battery.h Sat Jun 11 19:01:24 2016 +0000 +++ b/Battery/Battery.h Mon Jun 13 09:04:53 2016 +0000 @@ -62,16 +62,25 @@ void checkIn(); /** - * Returns the max current that can be drawn from the system, in amps - */ + * Returns the max current that can be drawn from the system, in amps + */ - float getMaxCurrent(); + float getMaxCurrent(); - /** - * returns a string of the log directory - */ - char *getLogDirectory(); - + /** + * 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. + */ + bool Battery::isCheckedIn(void); protected: // ********************** @@ -117,6 +126,7 @@ volatile char flagSendFileDone; volatile char flagGetMaxCharge; volatile char sendingFile; + volatile bool startCharge; // **********************