Change moveBy yaw rotation behavior

I am using moveBy to make the drone change heading while in place. However, it seems to be circling in clockwise direction only. Is there a way to change the behavior dynamically according the the dPsi value? clockwise or counter-clockwise, whichever is the nearest turn.