Help CenterHelp Center
Move Parrot drone upwards
moveup(parrotObj)
moveup(parrotObj,duration)
moveup(parrotObj,duration,speed)
example
moveup(parrotObj) moves the Parrot® drone, represented by parrotObj, upwards.
parrotObj
moveup(parrotObj,duration) moves the Parrot drone, represented by parrotObj, upwards for the specified time.
duration
moveup(parrotObj,duration,speed) moves the Parrot drone, represented by parrotObj, upwards for the specified time at a specified speed.
speed
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.
parrot
takeoff(parrotObj)
While the Parrot drone is in flight, move the drone upwards for the default duration of 0.5 seconds.
moveup(parrotObj);
While the Parrot drone is in flight, move the drone upwards for 2 seconds.
moveup(parrotObj,2);
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);
Parrot drone connection object, specified as a parrot object.
0.5
The time for which the Parrot drone moves up, specified in seconds.
Data Types: double
double
0.2
The absolute value of speed at which the Parrot drone moves up, specified in m/s.
move | movedown | parrot | takeoff
move
movedown
takeoff
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office