I'm trying to get a better understanding of how to measure battery capacity left. If I understand the STC3100 datasheet correctly, I need to reset the counters when the battery is fully charged. I'll need to use the battery capacity and figure out the capacity remaining based on the counter value. Am I on the right track? Does anyone have any C code that could be used?