Setting yaw setpoint in poshold mode

hi,
is it possible to set a yaw setpoint for a multicopter in poshold mode, by publishing on vehicle_attitude_setpoint? I am trying to do this, but everytime the vehicle is just shutting down and falling from the altitude held during poshold mode.