Python for Drone Control
Build and Code Autonomous Drones
-
- ¥1,500
-
- ¥1,500
発行者による作品情報
Build a real autonomous drone — without owning a drone.
Most drone programming books assume you already own a $1,500 quadcopter, a Pixhawk flight controller, and a workshop full of soldering equipment. This one doesn't.
Python for Drone Control teaches you to program autonomous drones from the ground up using PX4 SITL — the same flight control software running on real commercial drones — simulated faithfully on your laptop. You'll write Python scripts that connect to a drone, take off, fly precise routes, see the world through computer vision, make autonomous decisions, and complete real missions. Your code. A real autopilot. A flying machine.
By the end of this book, you will be able to:
- Set up a complete drone development environment with PX4 SITL, Gazebo Harmonic, and MAVSDK
- Connect Python code to a drone autopilot and stream live telemetry
- Fly autonomously — arm, take off, fly precise routes, hover, and land — entirely from Python
- Navigate using GPS coordinates with multi-waypoint missions
- Handle failsafes and recovery correctly using the safety patterns production drones rely on
- Add computer vision with YOLO11 — detect, track, and follow targets in real time
- Build intelligent state-machine behaviors using the same architecture Skydio and DJI ship
- Move confidently from simulation to real hardware when you're ready
You'll build three complete project applications:
Project 1 — Autonomous Patrol Drone. Flies a configurable route on repeat, watches for people with YOLO, logs every detection with GPS coordinates and timestamps.
Project 2 — Search-and-Rescue Grid Scanner. Generates a serpentine search pattern from two GPS corner coordinates, covers an area systematically, logs targets for post-flight analysis.
Project 3 — Delivery Drone Simulation. Point-to-point flight with simulated payload pickup and release, multi-delivery sequencing, ready to swap in real hardware.
What makes this book different:
No drone required. Every chapter runs against a faithful simulator. Buy the book today, code a flying drone tonight.
Modern tools that actually work in 2026. MAVSDK 2.6, Python 3.12, PX4 v1.16, Gazebo Harmonic, YOLO11, ROS 2 Jazzy. No DroneKit, no deprecated APIs. Every version pinned and verified.
Code that runs end-to-end. Every script is complete and runnable. A pre-flight verification at the start of Chapter 9 catches setup problems before they cost you an hour of debugging.
Production-shaped projects, not toy demos. Real architectures with reusable components, structured logging, and the design choices commercial drone software actually uses.
Honest about scope. No buzzwords without working code behind them. The intelligent-behavior chapters use rule-based state machines — the same approach production drones rely on — with a complete patrol-with-avoidance script you can read line by line.
Visual learning. Publication-quality diagrams illustrate the concepts that matter most: roll, pitch, and yaw axes, motor force differentials, the sensor fusion pipeline, the MAVSDK communication stack, NED coordinates, and the state machines that drive autonomous behavior.
Who this book is for: Python developers ready to add real-world autonomous systems to their skill set. Robotics enthusiasts graduating from Arduino projects to commercial-grade drone software. Engineering students studying autonomous systems, computer vision, or control theory. Anyone curious about how modern drones think.
What you need: A laptop running Ubuntu, macOS, or Windows with WSL2. Working knowledge of Python — async/await is taught in the book. No drone hardware, no physics background, no robotics experience required.
337 pages. 27 chapters. 3 appendices. Three complete projects. Start tonight.