
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.
Install the simulator and editor tools. Download the Hello Drone ZIP from Resources now so you can open the starter in the next lecture.
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.
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.
Distinguish armed, airborne, and flight mode. Watch the simulated quadcopter climb and land, then match the observed behavior to the state reported by PX4.
Run hello_drone.py from the starter. Verify that it connects to PX4 and prints the flight mode while the simulated quadcopter stays grounded.
See what changes when PX4 arms a quadcopter and which checks affect readiness. Learn which telemetry confirms that the drone is armed and still grounded.
Download the Flight Labs ZIP from Resources and run flight.py arm. Check readiness, verify the armed state while grounded, then confirm that PX4 disarms.
Run flight.py takeoff from the Flight Labs ZIP. Watch the relative altitude climb toward 3 m and verify the flight ends with touchdown.
Run flight.py land and follow the terminal output from the accepted landing request to touchdown confirmed. Compare the accepted action with the measured state.
Understand why a connection needs a deadline and how an explicit timeout lets you diagnose a simulator that never responded.
Stop the simulator and run connection.py --timeout 3. Check the message and the shell exit status to verify that a missing PX4 connection fails cleanly.
Restart the simulator and repeat the connection check. Verify that it returns success, then run the landing exercise to confirm the flight path recovered.
Run flight_recorder.py to produce a CSV and altitude chart. Identify the climb, steady altitude near 3 m, and descent in the plotted samples.
Run hover_challenge.py with the default and a narrower tolerance. Compare the measured error with each limit and check the touchdown result.
Read command requests, acknowledgments, and telemetry on one timeline. Identify when PX4 accepted Land and when the log first showed touchdown.
Download the Flight Projects ZIP from Resources. Run the Black Box recorder through a simulated flight and check the command and telemetry entries in the JSON Lines file.
Build the standalone HTML replay from the saved flight log. Move the cursor through takeoff and landing and compare command events with altitude and airborne status.
Read the four roof waypoints as offsets from launch. Identify the eight-metre survey height, the downward camera, and the position checks that decide when to take a picture.
Use the Flight Projects ZIP to launch the roof world and find the Gazebo camera topic. Run the inspection and verify that it captures four images and lands.
Open the contact sheet, manifest, and flight log. Match each image to its waypoint and camera timestamp, then confirm the touchdown entry.
Trace a command from the Android Emulator through the local FastAPI bridge and MAVSDK to PX4. Follow status and the inspection report back to the app.
Download the Flight Projects ZIP from Resources and start the Python bridge. Check the status endpoint and confirm that an inspection request while grounded receives HTTP 409.
Build the debug Android app and install it on the emulator. Follow the code that polls the bridge, enables flight buttons, displays telemetry, and downloads the report.
Use the app to arm, take off, survey the four roof points, open the report, and land. Verify the four photos and the touchdown entry in the saved run.
“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.