Main Content

flip

Flip Ryze drone in specified direction

Since R2020a

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

Description

flip(droneObj,direction) flips the Ryze drone, represented by droneObj, in the specified direction.

Note

Before executing a flip, ensure the following to avoid a crash:

  • Fly the drone outdoors.

  • The BatteryLevel is more than 50%.

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, flip the drone forward.

flip(droneObj,'forward');

Input Arguments

collapse all

Ryze drone connection object, specified as a droneObj.

The direction in which the drone flips, specified as a string.

Version History

Introduced in R2020a

See Also

| | |