Yaw control code updated