Open JWCS opened 11 months ago
For me the term charging means to put energy inside the battery. It does not mean to run without battery or from the grind.
So, if the battery stops charging then you can resett the changing flag. Charging is also a property of batteryState and not from non exiting energyState. You could generate an information if your robot is running from the grind.
I discovered that for one robot, the charging flag in batteryState is set by whether or not the current draw from the battery is positive (charging) or negative (not charging). But, when a robot gets to full charge, even if its sitting on the charger / in the charging station, it may not be charging. The charger may shutoff the charging, but not let the battery drop below 100% (as I've measured).
If the battery is 100%, and unchanging, therefore implying that the robot is being charged, even though the percentage is not increasing / charging, should the batteryState.charging still report charging?