Drone Basics

Learn to pilot a drone with code: takeoff and landing, waypoint navigation, obstacle avoidance, gate racing, and search patterns.

Beginner course

Read the Drone Basics guide

Missions

  1. Hover & Land

    Every flight starts the same way: take off, hold a steady hover, and land safely. Use `await drone.takeoff()` to lift off, `await drone.hover(seconds)` to hold position, and `await drone.land()` to touch back down on the pad.

  2. Waypoint Navigation

    Fly the drone through three waypoints, in order, then land. Use `await drone.moveForward(distance)` to move along the way the drone is facing, and `await drone.turn(degrees)` to rotate (positive turns right).

  3. Obstacle Avoidance

    A corridor of crates blocks the direct path to the goal marker. Use `await drone.getDistanceAhead()` to sense obstacles and steer around them without colliding. Colliding costs stars, but won't fail the run outright.

  4. Gate Race

    Race through all four gates in order, then land. Precision matters more than speed here: miss a gate and it won't count.

  5. Search Pattern

    Sweep the whole field to find every marker: visit all four corners, then the center, before landing. A boustrophedon (back-and-forth) pattern covers ground efficiently.

Quizzes

  • Flight Fundamentals — Check what you learned flying Drone Basics: how a program controls the drone, how the coordinate system works, and what a mission scores you on.