Noob question about python

Hi everyone,
I’m pretty much completely new to ardupilot. I’m planning on using ardupilot with the pixhawk 1 (baro, accelerometer, gyro, gps) to have a glider fly autonomously. Is there a way to use python to program a complete mission? Basically what I’m asking is how to put a python script in that can take in variables like altitude, gyro values, etc. And send signals to the throttle, ailerons, etc.
I’d still like to be able to see the telemetry and map if possible


Welcome to the community!

I think what you’re requesting isn’t easy, but you might look at “companion computers” to get started. That’s in the same direction as the idea that (I think) you’re suggesting.

And “dronekit” has a Python api: