control drone with python script

Hello,

For university project, I need to send commands for the drone to do specific movement in the flight. i use QGroundStation , ardupilot and tx12s TX with backpack. is there a tutorial how to do so ?

Thanks

Check the ArduPilot Mavlink commands: MAVLink Interface — Dev documentation. Then use a Python library like pymavlink to write your own API for your project

thanks for detailed answer. Is their additionnal configuration to do. since the tx12s speak over serial port configured into RCIN (i think) and commands go directly into UART 4 on the fc. doest sending commands needs an additionnal configuration in parameters. FI I use QGrooundStation. thanks a lot

great explinations thanks. Actually the script must run mon my computer (same machine a QGS). So the I need just just to send commands by radio link (wich one ? wich posrt? wich parameter?) to the Flight controller.

Now, get a telemetry radio set and do some reading about MAVproxy and pymavlink and get to work.

Last year in uni, I first tried dronekit but it seemed to have a lot of issues and if I remember correctly it’s unmaintained. Had to write my own little library with pymavlink

In fact mavproxy ismt strictly required. I did the same thing as you outlined but without mavproxy.

Yes,a few ways to do it. The post author just needs to get down to it and do the work. All the tools required have been covered here.