Method for directly measuring current of lead-acid battery