gps subscriber topic mavros
Hello,
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.
Asked by steveJobless on 2021-03-11 08:32:30 UTC
Comments