Spear governing algorithms for Pelton turbines on SPP