Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Drone Programming with Python: PX4 & Gazebo
New

Drone Programming with Python: PX4 & Gazebo

Fly a simulated drone with MAVSDK, replay flight telemetry, survey a roof, and build an Android flight console.
Created byRari Muthu
Last updated 11/2026
English
English

What you'll learn

  • Connect Python to a simulated PX4 drone in Gazebo using MAVSDK.
  • Arm, take off, and land using Python, then verify each action with telemetry.
  • Record command responses and flight telemetry and replay them in a browser.
  • Fly a four-point roof survey and verify the captured images against the flight log.
  • Run a roof survey from an Android Emulator via a local Python FastAPI bridge.

Course content

7 sections • 25 lectures • 1h 3m total length
  • Course introduction0:23

    See how Python, MAVSDK, PX4, and Gazebo fit together. The course starts with a connection check and ends with a browser replay, a roof survey, and an Android flight console.

  • What to download and install0:56

    Install the simulator and editor tools. Download the Hello Drone ZIP from Resources now so you can open the starter in the next lecture.

  • Set up VS Code and launch the simulator1:08

    Open the Hello Drone starter in VS Code, select the Python environment, and launch the simulated x500. Check that the aircraft appears in Gazebo and the Python dependencies pass pip check.

  • How Python talks to a drone0:51

    Trace a request from Python through MAVSDK and MAVLink to PX4. Follow the return path for telemetry and see how Gazebo supplies the simulated sensor data.

  • Drone terms for your first flight0:41

    Distinguish armed, airborne, and flight mode. Watch the simulated quadcopter climb and land, then match the observed behavior to the state reported by PX4.

  • Hello Drone - Read the flight mode0:56

    Run hello_drone.py from the starter. Verify that it connects to PX4 and prints the flight mode while the simulated quadcopter stays grounded.

Requirements

  • Use an Ubuntu Linux computer that can run PX4 and Gazebo. You’ll need Python 3.10 or newer, basic Python skills, and familiarity with a terminal. No physical drone is required.
  • For the Android project, install Android Studio, Android SDK Platform 36, and the Android Emulator. The course walks through the Python bridge and the app.

Description

“This course contains the use of artificial intelligence.”

Learn how to program, control, and monitor drones through hands-on exercises and practical projects. This course introduces you to drone software development using Python, PX4 Autopilot, MAVSDK, and Gazebo Simulator without requiring any physical drone hardware.

You will start with the fundamentals of drone programming and gradually progress towards building complete drone applications. Every exercise runs in a simulated environment, allowing you to experiment, troubleshoot, and develop your skills safely.

Learn the Fundamentals of Drone Programming

Using Python and VS Code, you will learn how to:

  • Connect to a simulated drone using MAVSDK.

  • Check aircraft connectivity and flight readiness.

  • Programmatically arm, take off, hover, and land a drone.

  • Read and monitor real-time flight telemetry.

  • Handle connection failures and troubleshoot flight commands.

  • Analyse altitude data to evaluate hover stability.

  • Understand the difference between command acceptance and successful execution.

  • Verify flight behaviour through software.

Build Three Hands-On Projects

Apply your knowledge by developing three practical projects using the same simulation environment.

Project 1: Drone Black Box – Flight Recording and Replay

Build a flight recording system that captures drone commands, actions, and telemetry. Develop a browser-based replay interface to analyse flight behaviour and compare commanded actions with actual flight results.

Project 2: Autonomous Virtual Roof Inspection

Develop an automated drone inspection application that navigates through predefined survey points, captures images using a downward-facing virtual camera, and generates an inspection contact sheet. Learn how to validate captured images against recorded flight data.

Project 3: Android Drone Flight Console

Build an Android application using Kotlin and Jetpack Compose to control and monitor your simulated drone. Connect the application to a Python FastAPI backend and implement features to initiate inspection missions, monitor flight progress, view captured images, and command the drone to land.

Course Resources

The course includes downloadable starter scripts, complete project source code, Gazebo simulation worlds, and sample outputs. You can follow the demonstrations, reproduce the exercises, and extend the projects independently.

Who Is This Course For?

  • Developers interested in drone programming and autonomous systems.

  • Python developers looking to explore robotics and drone applications.

  • Embedded and automotive software engineers interested in autonomous technologies.

  • Android developers interested in integrating mobile applications with drone systems.

  • Engineering students and technology enthusiasts interested in practical drone software development.

Prerequisites

Basic knowledge of Python and familiarity with terminal commands are recommended. No previous experience in drone programming or physical drone hardware is required. The Android application and backend integration are explained through guided walkthroughs.

By the end of this course, you will have practical experience in drone programming, autonomous flight control, telemetry monitoring, mission execution, camera integration, and mobile application development. You will also have a strong foundation to start developing your own drone software applications.

Who this course is for:

  • Python developers, robotics learners, and hobbyists new to drone programming who want to build and test drone software in simulation.