Modified line search for adjusting pitch angle