turn
Turn Parrot drone at specified angle
Syntax
Description
Examples
Turn Drone at Specified Angle
Connect to a Parrot drone.
parrotObj = parrot()
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, turn the drone by 0.7854 radians (45 degrees) in the clockwise direction
turn(parrotObj,deg2rad(45));
Input Arguments
parrotObj
— Parrot drone connection
parrot
object
Parrot drone connection object, specified as a parrot
object.
angle
— Relative angle in radians
real number in the interval [ -pi, pi]
The angle relative to the line determined by the direction the drone is facing by
which the Parrot drone turns, specified in radians. The drone moves in the clockwise
direction if angle
is positive. If the angle
is
negative, the drone moves in the counterclockwise direction.
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)