How to Change Waypoints From Python Script Run on Raspberry Pi?

Hello all!

So we have set up the Navio2 with Ardupilot and we’re very excited to get started setting up flight plans etc!

Our goal is to be able to run a python script on the Raspberry Pi (NOT a basestation) and have the script update a waypoint for the drone to fly to. Can anyone point me in the right direction?

I have found some stuff about MavProxy, but my understanding is that MAVProxy just allows you to update waypoints from the ground station. Is this correct? Does anyone know how to run a scrip on the Raspberry Pi itself and update waypoints from there (on the drone)?

Thanks very much for any help you can offer!

Sounds like you should look at DroneKit (

This project includes a lot of stuff to support autonomous operation.