yaw change in APM:Copter V3.4-dev

Hi team,

How do I control the yaw of the drone?
I am using APM:Copter V3.4-dev .
I have used https://github.com/dronekit/dronekit-python/blob/master/examples/set_attitude_target/set_attitude_target.py . But set_attitude(yaw_rate = 30, thrust = 0.5, duration = 3) does not work properly.

I need to rotate the drone on its yaw axis. I am using Gazebo simulator

That version is very old. Please switch to v3.7-dev and retry, many bugs have been fixed since the 3.4 version.