Main Content

abort

End flight of Ryze drone

Since R2020a

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

Description

abort(droneObj) instantaneously ends the flight of the Ryze drone, represented by droneObj, by shutting down all drone motors. Use takeoff to begin a new flight.

Note

This function is supported only for the Ryze Tello EDU drones and will error out when executed with a standard Ryze drone.

example

Examples

collapse all

Connect to a Ryze Tello EDU drone.

droneObj = ryze("TelloEDU")
droneObj = 
          ryze with properties:

                    Name: "TelloEDU"
                      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 EDU drone is in flight, abort the flight of the drone.

abort(droneObj)

Input Arguments

collapse all

Ryze drone connection object, specified as a droneObj.

Version History

Introduced in R2020a

See Also

| | |