Help CenterHelp Center
Move Parrot drone right
moveright(parrotObj)
moveright(parrotObj,duration)
moveright(parrotObj,duration,tilt)
example
moveright(parrotObj) moves the Parrot® drone, represented by parrotObj, to the right.
parrotObj
moveright(parrotObj,duration) moves the Parrot drone, represented by parrotObj, to the right for the specified time.
duration
moveright(parrotObj,duration,tilt) moves the Parrot drone, represented by parrotObj, to the right for the specified time at a specified angle.
tilt
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 to the right for the default duration of 0.5 seconds.
moveright(parrotObj);
While the Parrot drone is in flight, move the drone to the right for 5 seconds.
moveright(parrotObj,5);
While the Parrot drone is in flight, move the drone to the right for 5 seconds at an angle of 0.0873 radians.
moveright(parrotObj,5,deg2rad(5));
Parrot drone connection object, specified as a parrot object.
0.5
The time for which the Parrot drone moves to the right, specified in seconds.
Data Types: double
double
0.052
The angle at which the Parrot drone moves to the right, specified in radians.
move | moveleft | parrot | takeoff
move
moveleft
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