Main Content


Turn Parrot drone at specified angle

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



turn(parrotObj,angle) turns the Parrot® drone, represented by parrotObj, by the angle specified.


collapse all

Connect to a Parrot drone.

parrotObj = parrot()
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, turn the drone by 0.7854 radians (45 degrees) in the clockwise direction


Input Arguments

collapse all

Parrot drone connection object, specified as a parrot object.

The angle relative to the line determined by the direction the drone is facing by which the Parrot drone turns, specified in radians. The drone moves in the clockwise direction if angle is positive. If the angle is negative, the drone moves in the counterclockwise direction.

Data Types: double

Version History

Introduced in R2019a

See Also

| | |