Example python script to fly drone to a setpoint


Can anyone please provide a link to a python script that can fly a drone to a set-point using mavros and PX4? I found this but it is not using set-point.


@mtawfiqc Example in mavsdk-python: https://github.com/mavlink/MAVSDK-Python/blob/main/examples/offboard_position_ned.py

1 Like

I want to fly a drone in Offboard mode. Which topic should I use an example script?

I used setpoint but it’s not working motors just the arm doesn’t move. What did I understand reading in some of the issues setpoint only works with the mission already running on the drone?

How to do a takeoff maybe call it z = 5 in Offboard mode?