Main Content

readSpeed

Read current speed of Ryze drone

Since R2020a

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

Description

[speed,time] = readSpeed(droneObj) returns the current speed of the Ryze drone along the x-,y-, and z- axes and the time stamp.

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, read the speed of the drone.

[speed,time] = readSpeed(droneObj)
speed = 
        0.8000  -0.0000  0.0000 
 time =  
        datetime
          15-Aug-2019 14:07:19

Input Arguments

collapse all

Ryze drone connection object, specified as a droneObj.

Output Arguments

collapse all

The current speed of the drone in m/s along the x-, y-, and z- directions with respect to the inertial NED frame. The NED frame is calculated at drone startup.

The time at which the speed data is received by MATLAB®, specified as a datetime.

Version History

Introduced in R2020a