Softivation
Beginner
Python 2.7 (for DroneKit compatibility)Why?
Why DroneKit and Python 2.7?

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 versions

Drone 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
Drone Control with Python from Scratch cover image
Stop 3 on the route

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 now

What will you learn?

Click an item and we'll open that lesson in the curriculum.

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
Run Python in your browser, no membership needed

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. 1
    Legal notice

    Terms of use for the course materials.

    Article
  2. 2
    Introduction
    Video, 29 min
  3. 3
    Python setup Python
    Video, 2 min
  4. 4
    DroneKit setup DroneKit
    Video, 2 min
  5. 5
    Visual Studio Code setup
    Video, 3 min
  6. 6
    Hello Drone

    First connection to the simulated vehicle with DroneKit.

    DroneKitSITL
    Video, 3 min
  7. 7
    DroneKit won't install: the import chain, two bugs and the pymavlink equivalent

    You set up the virtual environment, pip install dronekit finished without errors, and dronekit 2.9.2 shows in the package list.

    2026DroneKitpymavlinkMAVLink
    Article
2 Companion computers, SITL and code structure3 lessons, 1.6 hr of video
  1. 8
    Companion computers and SITL

    Companion computers such as a Raspberry Pi, Arduino and PC, and SITL simulation.

    SITLRaspberry PiArduino
    Video, 36 min
  2. 9
    Best coding practices - part 1
    Video, 23 min
  3. 10
    Best coding practices - part 2
    Video, 37 min
3 Connecting to the vehicle, attributes and parameters6 lessons, 1.9 hr of video
  1. 11
    Connecting to the vehicle and the Vehicle class attributes DroneKit
    Video, 28 min
  2. 12
    Connecting to the vehicle and the Vehicle class attributes - practice DroneKitSITL
    Video, 45 min
  3. 13
    Attribute listeners and parameters DroneKitParameter
    Video, 40 min
  4. 14
    The code connects, but position and altitude come back empty

    The screen shows the connection line, and right below it latitude, longitude and altitude are empty.

    2026DroneKitMAVLinkGCS
    Article
  5. 15
    You wrote a parameter from Python, but the autopilot keeps the old value

    The code on your Pi sends the write command, and the terminal shows no errors.

    2026Mission PlannerPythonParameter
    Article
  6. 16
    Python says 500 meters altitude, Mission Planner says 10 meters

    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.

    2026Mission PlannerPythonGPS
    Article
4 Takeoff, movement and GUIDED commands10 lessons, 1.6 hr of video
  1. 17
    Take off, move the vehicle, plan a route Code labDroneKitRoute planning
    Video, 42 min
  2. 18
    GUIDED mode commands and supported commands DroneKitGUIDED
    Video, 39 min
  3. 19
    Creating a custom vehicle class DroneKit
    Video, 12 min
  4. 20
    The script ARMs, and the drone DISARMs before it takes off

    You run the script and see the ARM line in telemetry. The motors idle for a few seconds, then stop without any warning.

    2026Telemetry
    Article
  5. 21
    The velocity command goes through, and the drone stops after a few seconds

    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.

    2026GUIDEDParameter
    Article
  6. 22
    You send a velocity command, and the drone turns even though you didn't touch yaw

    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.

    2026ArduPilotpymavlinkMAVLink
    Article
  7. 23
    It says it switched to GUIDED, but the mode doesn't change in HEARTBEAT

    You send DO_SET_MODE with pymavlink. COMMAND_ACK returns “accepted”, but the HEARTBEAT your script reads still shows the old mode.

    2026pymavlinkMAVLinkGCS
    Article
  8. 24
    The takeoff command is rejected, and the drone doesn't leave the ground

    Your Python code sends the takeoff command, the line runs without errors, and the drone stays where it is.

    2026Mission PlannerMAVLinkPython
    Article
  9. 25
    You wait for an arrival notification, and the code hangs at the target

    The drone has reached the point you sent. On the Mission Planner map it sits right on top of the target.

    2026Mission PlannerPythonGUIDED
    Article
  10. 26
    You sent a target, and the drone descends instead of moving forward

    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.

    2026MAVLinkGUIDED
    Article
5 Practice2 lessons, 27 min of video
  1. 27
    Hands-on example 1

    A hands-on example where everything from the lessons works together.

    DroneKitSITL
    Video, 27 min
  2. 28
    Evaluation

    A short three-question satisfaction survey, not an exam.

    Survey
6 Troubleshooting: mission, failsafe, RC and servo7 lessons
  1. 29
    Mission uploaded but the UAV doesn't go to the waypoint: the fix

    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.

    2026MAVLinkRoute planning
    Article
  2. 30
    GCS failsafe doesn't trigger in flight when the mission runs from a companion computer

    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.

    2026Raspberry PiJetsonGCS
    Article
  3. 31
    I send RC override and the autopilot ignores the packet

    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.

    2026PythonFailsafeParameter
    Article
  4. 32
    Position arrives slowly in Python, and the rate you want doesn't hold

    You connected to the Pixhawk with pymavlink, and the heartbeat arrives regularly.

    2026pymavlinkMAVLinkPixhawk
    Article
  5. 33
    Your Python commands aren't processed after a battery failsafe

    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.

    2026PythonFailsafeGUIDED
    Article
  6. 34
    The servo command goes out from Python, but the payload servo doesn't move

    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.

    2026MAVLinkPythonParameter
    Article
  7. 35
    The code waits while uploading a mission from Python, and the upload gets canceled

    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.

    2026ArduPilotMAVLinkRaspberry Pi
    Article

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

Tools and hardware

  • SITL
  • pymavlink
  • Raspberry Pi

How are the lessons taught?

  1. Slides
  2. Sample code
  3. 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

Furkan IŞIKAY

Instructor · Founder of Softivation

A 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 instructor

Digital 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?

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.