Main Content

flip

Flip Parrot drone in specified direction

Description

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.

Note

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

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 drone is in flight, flip the drone forward.

flip(parrotObj,'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

| | |