Main Content

moveup

Move Parrot drone upwards

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

Description

moveup(parrotObj) moves the Parrot® drone, represented by parrotObj, upwards.

example

moveup(parrotObj,duration) moves the Parrot drone, represented by parrotObj, upwards for the specified time.

example

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

example

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

moveup(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 upwards for 2 seconds.

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

moveup(parrotObj,2,1);

Input Arguments

collapse all

Parrot drone connection object, specified as a parrot object.

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

Data Types: double

The absolute value of speed at which the Parrot drone moves up, specified in m/s.

Data Types: double

Version History

Introduced in R2019a

See Also

| | |