Main Content

land

Land Parrot drone

Add-On Required: This feature requires the MATLAB Support Package for Parrot Drones add-on.

Description

land(parrotObj) initiates the gradual landing of Parrot® drone, represented by parrotObj, from the current position and ends the drone flight. Use takeoff to begin a new flight. This is a blocking call. In other words, MATLAB® blocks the command line until the current command runs to completion.

example

Examples

collapse all

Connect to a Parrot drone.

parrotObj = parrot('Mambo')
parrotObj = 
          parrot with properties:

                    Name: "Mambo"
                      ID: "Mambo_564853"
                   State: "landed"
            BatteryLevel: 50%
        AvailableCameras: ["FPV"]

Use the parrot object to initiate takeoff of the Parrot drone.

takeoff(parrotObj)

While the Parrot is flying, initiate the landing of the drone.

land(parrotObj)

Input Arguments

collapse all

Parrot drone connection object, specified as a parrot object.

Version History

Introduced in R2019a

See Also

| | |