Main Content

moveleft

Move Parrot drone left

Description

example

moveleft(parrotObj) moves the Parrot® drone to the left.

example

moveleft(parrotObj,duration) moves the Parrot drone to the left for the specified time.

example

moveleft(parrotObj,duration,tilt) moves the Parrot drone to the left for the specified time at a specified angle.

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, move the drone to the left for the default duration of 0.5 seconds.

moveleft(parrotObj);

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, move the drone to the left for 5 seconds.

moveleft(parrotObj,5);

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, move the drone to the left for 5 seconds at an angle of 0.0873 radians.

moveleft(parrotObj,5,deg2rad(5));

Input Arguments

collapse all

Parrot drone connection object, specified as a parrot object.

The time for which the Parrot drone moves to the left, specified in seconds.

Data Types: double

The angle at which the Parrot drone moves to the left, specified in radians.

Data Types: double

Introduced in R2019a