No Yaw rotation in GPS denied environment

Hi to all,
I’m trying to rotate the copter in fligth with the command:

condition_yaw ()

from a script running on a Raspberry.
The copter remains stable in fligth but doesn’t rotate its yaw attitude.
How can I solve this?

Thank you in advance