Read current height of Ryze drone relative to the takeoff surface
Connect to a Ryze® Tello drone.
droneObj = ryze()
droneObj = ryze tello with properties: Name: "Tello" ID: "TELLO-D2B07B" State: "landed" BatteryLevel: 50% AvailableCameras: ["FPV"]
initiate takeoff of the drone.
While the Ryze Tello is in flight, read the height relative to the takeoff surface.
[height,time] = readHeight(droneObj)
height = 0.8600 time = datetime 15-Aug-2019 14:07:19
droneObj— Ryze drone connection
Ryze drone connection object, specified as a
height— Current height of drone
The current height of the drone relative to the takeoff surface, specified in meters.
time— Timestamp from drone
The time at which the height data is received by MATLAB®, specified as a datetime.