moveleft
Move Parrot drone left
Description
Examples
Move Parrot Drone Left
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);
Move Parrot Drone Left for Specified Duration
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);
Move Parrot Drone Left for Specified Duration and Angle
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
parrotObj
— Parrot drone connection
parrot
object
Parrot drone connection object, specified as a parrot
object.
duration
— Duration in seconds
0.5
(default) | positive real scalar
The time for which the Parrot drone moves to the left, specified in seconds.
Data Types: double
tilt
— Absolute value of angle at which drone moves
0.052
(default) | positive real scalar
The angle at which the Parrot drone moves to the left, specified in radians.
Data Types: double
Version History
Comando de MATLAB
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.
Select a Web Site
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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)