How is it possible to publish GPS data for dronecode sdk?

Hi,
If I want to use dronesdk and do autonomous flight using GPS coordinate, how should I publish the GPS location? should I be publishing it to MAVROS topics? or should I do something completely different?