Main Content

parrot

Connection to Parrot drone

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

Description

This object represents a connection from MATLAB® to the Parrot® drone. To interact with the Parrot drone, use this object with the functions listed in Object Functions.

Note

MATLAB Support Package for Parrot Drones supports only the Parrot shipped factory firmware. To restore the original firmware, see Restore Original Firmware.

Creation

Description

parrotObj = parrot connects to the first available Parrot drone over the wireless network.

example

parrotObj = parrot(droneName) connects to the Parrot drone with the specified name over the wireless network.

example

parrotObj = parrot(droneID) connects to a Parrot drone with a specific ID over the wireless network.

example

Input Arguments

expand all

Name of the Parrot drone.

Parrot DronesString used to create the parrot object
Parrot Mambo FPV'Mambo'
Parrot Bebop 2'Bebop2'

ID of the Parrot drone.

Properties

expand all

Name of the connected Parrot drone, specified as a string.

Example: "Mambo"

Data Types: string

The ID of the specific Parrot drone returned as a string.

Example: "Mambo_564853"

Data Types: string

This property is read-only.

The piloting state of the Parrot drone, specified as a string.

Example: "landed"

Data Types: string

This property is read-only.

Current battery level of the drone, specified as a percentage.

Example: 50%

Data Types: double

Available cameras of drone, specified as a cell array

Example: ["FPV"]

Data Types: struct

Object Functions

The object functions are used to interact with your Parrot drone

abortEnd flight of Parrot drone
flipFlip Parrot drone in specified direction
landLand Parrot drone
moveMove Parrot drone in all six directions
movebackMove Ryze drone backwards
movedownMove Ryze drone down
moveforwardMove Ryze drone forward
moveleftMove Ryze drone left
moverightMove Ryze drone right
moveupMove Ryze drone upwards
readHeightRead current height of Parrot drone
readOrientationRead Euler angles of Parrot drone
readSpeedRead speed of Parrot drone
takeoffInitiate Parrot drone takeoff
turnTurn Parrot drone at specified angle

Examples

collapse all

Connect to a Parrot drone.

parrotObj = parrot()
parrotObj = 
          parrot with properties:

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

Connect to a Parrot Mambo FPV drone over a wireless network.

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

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

Connect to a specific Parrot Mambo FPV drone with the ID over a wireless network.

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

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

Version History

Introduced in R2019a

See Also

| | |