diydrones/ardupilot — pull request #1457 by jschall (2014-10-09 13:05:03+00:00)
Title: AC_PosControl: use cos of pitch target instead of current pitch in accel_to_lean_angles

I think this should cause the copter to take a straight(er) path to the target tilt angle.