gps subscriber topic mavros

asked 2021-03-11 07:32:30 -0600

steveJobless gravatar image


I'm am currently using mavros to build an autonomous drone for a university project. I have connected a pixhawk flight controller(with apm firmware) with a raspberry pi. I have written some code which calculates the bearing(yaw) between where the drone currently is and where it needs to go. However, now I need to be able to read the GPS location from the flight controller.

From what I've read I understood that this information was published to the "mavros/setpoint_raw/global" topic however, when inspecting this topic(using rostopic echo) nothing seems to be publishing to it.

Have I misunderstood what the topic is used for and is there another way to read the GPS data from the flight controller.

edit retag flag offensive close merge delete