MAVROS Offboard Mode setting GPS location target - Drop in altitude

Update:

The issue has been solved now. The explanation is provided in mavros - ROS wiki page Avoiding Pitfalls Related to Ellipsoid Height and Height Above Mean Sea Level

When controlling the FCU using global setpoints, you specify the altitude as meters above mean sea level (AMSL).

The coordinate_frame value needs to be set to 5 (FRAME_GLOBAL_INT).