Energy storage charging pile compensator