How to set the UAV into hover mode with the topic /mavros/setpoint_raw/local

I’m using ROS melodic with Gazebo9 with MAVROS v1.6 to conduct the simulation.

I use the topic /mavros/setpoint_raw/local to control the UAV in different modes (position / velocity control )by setting the type_mask in the mavros_msgs/PositionTarget message.

Now I want to control the UAV to hover at current position during its movement. Can I achieve that by setting the type_mask like mentioned in the ?