Main Content

turn

Turn Ryze drone by a specified angle

Since R2020a

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

Description

turn(droneObj,angle) turns the Ryze drone, represented by droneObj, by the angle specified in radians.

example

Examples

collapse all

Connect to a Ryze Tello drone.

droneObj = ryze()
droneObj = 
          ryze with properties:

                    Name: "Tello"
                      ID: "TELLO-D2B07B"
               IPAddress: "192.168.10.1"
                   State: "landed"
            BatteryLevel: 50%
             StationMode: 0
        AvailableCameras: ["FPV"]

Use takeoff to initiate takeoff of the drone.

takeoff(droneObj)

While the Ryze Tello is in flight, turn the drone by 0.7854 radians (45 degrees) in the clockwise direction.

turn(droneObj,deg2rad(45));

Input Arguments

collapse all

Ryze drone connection object, specified as a droneObj.

The relative angle by which the drone has to turn, specified in radians.

Version History

Introduced in R2020a

See Also

| | |