Hi 승주,
I understand that you want to make circular path with a Ryze Tello Drone.
Using the above MATLAB’s package, you can pilot the drone by sending navigation commands to control its direction and orientation. The package’s documentation for setup, navigation commands etc. can be found here - https://www.mathworks.com/help/supportpkg/ryzeio/.
In your case, a circular path can be drawn using the drone in 2 methods using MATLAB.
1st method - using the drone navigation commands of the above package:
Using the above navigation commands, you can draw a circle in multiple ways. One way is to approximate a circular path with a polygon path of large number of sides.
Some of the commands that can be useful are:
- 'ryze' command to connect to the drone - https://www.mathworks.com/help/supportpkg/ryzeio/ref/ryze.html
- 'turn' command to turn Ryze drone by a specified angle - https://www.mathworks.com/help/supportpkg/ryzeio/ref/turn.html
- 'moveforward' command to move the drone forward for a specified distance - https://www.mathworks.com/help/supportpkg/ryzeio/ref/moveforward.html
You can check the sample MATLAB code below to draw a circle with drone using the MATLAB package.
angleToBeTurnedInEachTurnInDegrees = 360/numberOfTurns;
angleToBeTurnedInEachTurnInRadians = deg2rad(angleToBeTurnedInEachTurnInDegrees);
forwardDistanceToBeMovedInEachStep = 2*radiusOfCircle*sin(angleToBeTurnedInEachTurnInRadians);
turn(droneObj,-(angleToBeTurnedInEachTurnInRadians/2));
moveforward(droneObj,'Distance',forwardDistanceToBeMovedInEachStep,'WaitUntilDone',false);
for turn = 1:numberOfTurns
turn(droneObj,angleToBeTurnedInEachTurnInRadians);
moveforward(droneObj,'Distance',forwardDistanceTobeMovedInEachStep,'WaitUntilDone',false);
turn(droneObj,angleToBeTurnedInEachTurnInRadians/2);
You can view the possible path traced by the drone in the attched animation. Extract the attached zip file (drawCircleWithDroneAnimation.zip ) to view the animation.
2nd method - using 'Navigating-Ryze-Tello-Drones-With-MATLAB-App' :
Among many other things, this MATLAB App helps you to:
- Perform take-off/land of a drone.
- Control the drone’s navigation using keyboard or by using the navigation control buttons in the App.
So, using this App, you can interactively draw a circle with the drone.
Hope it helps in resolving your query!