How to measure the maximum output power of the battery