© 2022, Ismail Saritas. All rights reserved.In recent years, the interest in unmanned aerial vehicles (UAV) has increased. They have penetrated into all areas of life. However, studies on UAV control have been a frequently discussed topic by researchers. In this study, a hexarotor in which yaw flight is tried to be controlled by changing the arm lengths during flight (morphing) is discussed. The hexarotor mathematical model is linearly derived using Newton's equations of motion. The equations of motion are modeled using the state space model approach. Hexarotor has been drawn in Solidworks program in accordance with the reality of all morphing states. Morphing estimation and accordingly proportional-integral-derivative (PID) coefficients were estimated using Simultaneous Perturbation Stochastic Approximation (SPSA). SPSA was preferred because it converged to the optimum result faster than similar algorithms. Hexarotor simulations were performed in Matlab/Simulink environment. Hexarotor yaw flight stability was achieved by minimizing the SPSA generated cost function based on design performance criteria. The cost function converged in 3-4 iterations and approached the optimum result. Accordingly, the design performance criteria have also improved and successfully followed the given trajectory.