Design of battery discharge device