Battery maximum discharge current measurement