How to pull codes that upload drone?

Hi everyone, i am student who interested with drones and RPi. I wanna learn how to pull about pixhawk codes that uploaded by QGroundControl. To put it more simply, I will create multiple flight plans. And I want to upload the codes to pixhawk in RPi with wifi/bluethoth without connecting QGroundControle. I need to keep at least 5-6 flight plans in a folder in the RPi. How can I store the flight plans I have prepared? And how can i upload to pixhawk? I encounter with some topics Mavlinks and others. Is it right way for start? I wanna only basic tings to learn. Can you help me?

Yes, it is the right way to start look at dronekit python and/or pymavlink examples.

It allows you to upload missions to the flight controller (ArduPilot) from the Rpi.