Main Content

movedown

Move Parrot drone down

Description

example

movedown(parrotObj) moves the Parrot® drone, represented by parrotObj, downwards.

example

movedown(parrotObj,duration) moves the Parrot drone, represented by parrotObj, down for the specified time.

example

movedown(parrotObj,duration,speed) moves the Parrot drone, represented by parrotObj, down for the specified time at a specified speed.

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 downwards for the default duration of 0.5 seconds.

movedown(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 down for 2 seconds.

movedown(parrotObj,2);

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 down for 2 seconds at a speed of 1 m/s.

movedown(parrotObj,2,1);

Input Arguments

collapse all

Parrot drone connection object, specified as a parrot object.

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

Data Types: double

The absolute value of vertical speed at which the Parrot drone moves down, specified in m/s. The default value is 0.2m/s.

Data Types: double

Version History

Introduced in R2019a

See Also

| |