Energy storage battery frequency modulation method