Main Content


Flip Parrot drone in specified direction

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


flip(parrotObj,direction) flips the Parrot® drone, represented by parrotObj, in the specified direction. This is a blocking call. In other words, MATLAB® blocks the command line until the current command runs to completion.


The Parrot drone does not flip if the battery level is low. Check the drone's battery level before you use the function.


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.


While the Parrot drone is in flight, flip the drone forward.


Input Arguments

collapse all

Parrot drone connection object, specified as a parrot object.

The direction in which the Parrot drone flips, specified as a character vector.

Version History

Introduced in R2019a

See Also

| | |