Main Content

ryze

Connection to Ryze drone

Description

This object represents a connection from MATLAB® to the Ryze® drone. To interact with the Ryze drone, use this object with the functions listed in the Object Functions.

Creation

Description

example

droneObj = ryze() connects to the first available Ryze drone over the wireless network.

example

droneObj = ryze(droneName) connects to the Ryze drone with the specified name over the wireless network.

example

droneObj = ryze(droneID) connects to a Ryze drone with a specific ID over the wireless network.

Input Arguments

expand all

Name of the Ryze drone.

ID of the Ryze drone.

Properties

expand all

This property is read-only.

Name of the connected Ryze drone, specified as a string.

Example: "Tello"

Data Types: string

This property is read-only.

The ID of the specific Ryze drone returned as a string.

Example: "TELLO-D2B07B"

Data Types: string

This property is read-only.

The piloting state of the Ryze drone, specified as a string. The value of State does not change if the drone crash lands or force lands due to low battery.

Example: "Landed"

Data Types: double

This property is read-only.

Current battery level of the drone, specified as a percentage.

Example: 50%

Data Types: double

This property is read-only.

Available cameras of drone, specified as an array of strings.

Example: ["FPV"]

Data Types: string

Object Functions

The object functions are used to interact with your Ryze drone

abortEnd flight of Ryze drone
flipFlip Ryze drone in specified direction
landLand Ryze drone
moveMove Ryze drone in all three axes
movebackMove Ryze drone backwards
movedownMove Ryze drone down
moveforwardMove Ryze drone forward
moveleftMove Ryze drone left
moverightMove Ryze drone right
moveupMove Ryze drone upwards
readHeightRead current height of Ryze drone relative to the takeoff surface
readOrientationRead current orientation of Ryze drone in terms of Euler angles
readSpeedRead current speed of Ryze drone
takeoffInitiate Ryze drone takeoff
turnTurn Ryze drone by a specified angle

Examples

collapse all

Connect to a Ryze drone.

droneObj = ryze()
droneObj = 
          ryze with properties:

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

Connect to a Ryze Tello drone.

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

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

Connect to a specific Ryze Tello drone with the ID.

droneObj = ryze("TELLO-54321")
droneObj = 
          ryze with properties:

                    Name: "TelloEDU"
                      ID: "TELLO-D2B07B"
                   State: "landed"
            BatteryLevel: 50%
        AvailableCameras: ["FPV"]

See Also

| |

Introduced in R2020a