Python 2.7 (for DroneKit compatibility)Why?
This is a deliberate choice. DroneKit works without problems with the affordable flight controllers available in Turkey, and it lets you control a vehicle in a few lines. How to do the same things with pymavlink on current Python versions is covered separately in the articles added in 2026. The Raspberry Pi section of the Drone Communication course is written with Python 3 and pymavlink.
If you want to work with newer Python versionsDrone Control with Python from Scratch
Take off, steer and give missions to a drone from Python with DroneKit: first in SITL, then with a companion computer such as a Raspberry Pi.
- 35lessons, 6 sections
- 6.1 h15 videos
- 30participants
Watch the free first lesson
The full Drone Control with Python courseThe first lesson is free with membership, the rest are in the curriculum.
Start nowWhat will you learn?
Click an item and we'll open that lesson in the curriculum.
- You install Python, DroneKit and VS Code and run your first "Hello Drone" code.
- You learn the role of companion computers such as Raspberry Pi, Arduino and PC, and of SITL.
- You connect to the vehicle and read the attributes of the vehicle class.
- You follow telemetry with attribute listeners and read and write parameters.
- You take off, move the vehicle and plan a route.
- You use GUIDED mode commands and write your own vehicle class.
- You solve ARM, takeoff, mode change and speed command problems with their pymavlink equivalents.
- You solve problems with mission upload, failsafe, RC override and dropping a payload with a servo.
After the video, you run the code yourself
All of it opens with your access. You can try running Python in the browser before you buy.
- 1 code labTake off, go and return home with DroneKit
- 204-question exam bankEnd-of-lesson check, section and end-of-course exam, pass mark 70% Certificate requirement
- Learning CoachAn AI that knows the lesson: 100 messages a month on the Season plan, 20 on a single course
- Ask about the videoYou pause the video and ask. The question attaches to that moment, and after you read the answer you return to the video from there
Preparing with a team? A sponsor can pay, and the competition calendar is on the team page
Curriculum
You can see everything before you buy.
- 15 videos, 6.1 h
- 19 articles
- 1 short survey
- 18 new lessons in 2026
1 Getting started and setup7 lessons, 39 min of video
- 1 Legal noticeArticle
Terms of use for the course materials.
- 2 IntroductionVideo, 29 min
- 3 Python setupVideo, 2 min
- 4 DroneKit setupVideo, 2 min
- 5 Visual Studio Code setupVideo, 3 min
- 6 Hello DroneVideo, 3 min
First connection to the simulated vehicle with DroneKit.
- 7 DroneKit won't install: the import chain, two bugs and the pymavlink equivalentArticle
You set up the virtual environment, pip install dronekit finished without errors, and dronekit 2.9.2 shows in the package list.
2 Companion computers, SITL and code structure3 lessons, 1.6 hr of video
- 8 Companion computers and SITLVideo, 36 min
Companion computers such as a Raspberry Pi, Arduino and PC, and SITL simulation.
- 9 Best coding practices - part 1Video, 23 min
- 10 Best coding practices - part 2Video, 37 min
3 Connecting to the vehicle, attributes and parameters6 lessons, 1.9 hr of video
- 11 Connecting to the vehicle and the Vehicle class attributesVideo, 28 min
- 12 Connecting to the vehicle and the Vehicle class attributes - practiceVideo, 45 min
- 13 Attribute listeners and parametersVideo, 40 min
- 14 The code connects, but position and altitude come back emptyArticle
The screen shows the connection line, and right below it latitude, longitude and altitude are empty.
- 15 You wrote a parameter from Python, but the autopilot keeps the old valueArticle
The code on your Pi sends the write command, and the terminal shows no errors.
- 16 Python says 500 meters altitude, Mission Planner says 10 metersArticle
In Mission Planner the drone hovers at 10 meters. Your code sends 510 or 510080 at the same time, and the "once it reaches 10 meters" condition fires while the drone is on the ground.
4 Takeoff, movement and GUIDED commands10 lessons, 1.6 hr of video
- 17 Take off, move the vehicle, plan a routeVideo, 42 min
- 18 GUIDED mode commands and supported commandsVideo, 39 min
- 19 Creating a custom vehicle classVideo, 12 min
- 20 The script ARMs, and the drone DISARMs before it takes offArticle
You run the script and see the ARM line in telemetry. The motors idle for a few seconds, then stop without any warning.
- 21 The velocity command goes through, and the drone stops after a few secondsArticle
You send a velocity command to GUIDED mode from the companion computer. The vehicle takes off, accelerates toward the target direction, then slows down and stops on its own.
- 22 You send a velocity command, and the drone turns even though you didn't touch yawArticle
You send only a velocity command in GUIDED mode with pymavlink. You don't touch the yaw fields, and you mark yaw and yaw_rate as "ignore" in type_mask.
- 23 It says it switched to GUIDED, but the mode doesn't change in HEARTBEATArticle
You send DO_SET_MODE with pymavlink. COMMAND_ACK returns “accepted”, but the HEARTBEAT your script reads still shows the old mode.
- 24 The takeoff command is rejected, and the drone doesn't leave the groundArticle
Your Python code sends the takeoff command, the line runs without errors, and the drone stays where it is.
- 25 You wait for an arrival notification, and the code hangs at the targetArticle
The drone has reached the point you sent. On the Mission Planner map it sits right on top of the target.
- 26 You sent a target, and the drone descends instead of moving forwardArticle
Your code sends a latitude, a longitude and 20 meters to a drone in GUIDED mode. The drone turns its nose, drifts a few meters, then starts descending straight down.
5 Practice2 lessons, 27 min of video
- 27 Hands-on example 1Video, 27 min
A hands-on example where everything from the lessons works together.
- 28 EvaluationSurvey
A short three-question satisfaction survey, not an exam.
6 Troubleshooting: mission, failsafe, RC and servo7 lessons
- 29 Mission uploaded but the UAV doesn't go to the waypoint: the fixArticle
You uploaded the mission. MISSION_ACK arrived with type=0, which means ACCEPTED. The code finished without errors. Then you switch to AUTO and the vehicle goes nowhere.
- 30 GCS failsafe doesn't trigger in flight when the mission runs from a companion computerArticle
The script running the GUIDED mission on a Raspberry Pi or Jetson stopped, the link dropped or the loop locked up. You expected the drone to RTL and return home.
- 31 I send RC override and the autopilot ignores the packetArticle
You send an RC override packet from your Python code and get no error. The drone is ARMed. You write 1550 to the throttle channel, but the drone doesn't lift off.
- 32 Position arrives slowly in Python, and the rate you want doesn't holdArticle
You connected to the Pixhawk with pymavlink, and the heartbeat arrives regularly.
- 33 Your Python commands aren't processed after a battery failsafeArticle
Your code sends a velocity command in GUIDED mode. The drone does what you say for a while, then drops the commands and goes its own way.
- 34 The servo command goes out from Python, but the payload servo doesn't moveArticle
Your code on the mission computer sends the drop command when it reaches the target. The terminal is clean and the heartbeat is regular. The payload stays put.
- 35 The code waits while uploading a mission from Python, and the upload gets canceledArticle
Your Python code on the Raspberry Pi reports the mission item count to the Pixhawk, then waits without any output. The link is alive: the heartbeat flows and you can read parameters.
Is it for you?
Who it's for
- Software developers on TEKNOFEST UAV, Fighting UAV and Swarm Robots teams
- People who want to write their own control software for their drone
- People who want to run autonomous missions with a companion computer like a Raspberry Pi
- Engineering and computer programming students
Who it's not for
- If you're looking for Gazebo, ROS, YOLO or swarm simulation: those topics are in the AI and Drone Simulation Course. AI and Simulation
- If you want to write a ground control station interface, look at the C# course. C# and Ground Control Station
Prerequisites
- No programming knowledge required. You start with the Python setup.
- Knowing basic drone concepts will make it easier (the Sensors to Flight and Mission Planner courses).
Technical requirements
- Python 2.7 and DroneKit (setup is covered in the lessons)
- Visual Studio Code
- ArduPilot SITL for simulation; for real flights, a flight controller running ArduPilot and a companion computer like a Raspberry Pi (optional)
- 1From Sensors to Flight
- 2Mission Planner
- 3Drone Control with Python
- 4Drone Communication
- 5AI and Simulation
Tools and hardware




- SITL
- pymavlink
- Raspberry Pi
How are the lessons taught?
- Slides
- Sample code
- Running in SITL
Theory topics are explained with Canva slides. In the hands-on lessons, pre-written example code runs live in the SITL simulation and is explained line by line. No code is written from scratch in the lessons.
Hardware and products used in this course
Products in our store and which lesson of the course they are useful in.
Instructor and certificate
Furkan IŞIKAY
Instructor · Founder of SoftivationA mechatronics engineer who has been developing software since 2011. He developed the Python main management unit of KAPGAN, Turkey's first-place winner at TEKNOFEST 2021 Fighting UAV.
Meet the instructorDigital verifiable certificate
Your certificate is issued automatically when you complete all lessons within your access period and pass the end-of-course exam with at least 70%. You can also download it as a PDF.
How is the certificate verified?Student reviews
Frequently asked
Is code written live in the lessons?
No. Pre-written example code runs live in the SITL simulation and is explained line by line. Theory topics are explained with Canva slides.
Why Python 2.7?
DroneKit was chosen on purpose because it works with the affordable flight controllers available in Turkey. The pymavlink equivalents with current Python are in the extra articles.
What if I don't have a real drone?
You can try every command in the ArduPilot SITL simulation.
Are Gazebo and ROS in this course?
No. Gazebo, ROS, YOLO and swarm topics are in the AI and Drone Simulation Course.
Can I take this course first and switch to the Season plan later?
Yes. If you switch within 30 days, what you paid for this course is deducted from the Season plan.
Who do I ask when I get stuck?
Every course has its own Q&A group. You ask your question there, and the instructor and other participants answer.
Is the evaluation at the end an exam?
No. At the end of the course there is a short three-question satisfaction survey. There is no grade or pass requirement.