Hi,
I understand that you want documentation or a video about locating Ryze Tello on Google Map.
MATLAB Support Package for Ryze Tello Drones provide flight data like height and speed along the x-,y-, and z- axes and the time stamp. Please check the documentation here:
- MATLAB Support Package for Ryze Tello Drones Documentation: https://www.mathworks.com/help/supportpkg/ryzeio/index.html
- Flight Data - MATLAB & Simulink: https://www.mathworks.com/help/supportpkg/ryzeio/flight-data.html
Using this flight data of height and speed, you can assume a starting point and calculate the route. Please check the below code which calculates the route in x,y,z positions and saves the route as an image. A scale/ruler was also added for reference. This ruler later helps in overlaying the route image onto Google Maps.
timeData = zeros(numSamples, 1);
speedData = zeros(numSamples, 3);
positionData = zeros(numSamples, 3);
initialPosition = [0, 0, 0];
currentPosition = initialPosition;
[speed, timeSpeed] = readSpeed(droneObj);
deltaTime = timeSpeed - prevTime;
currentPosition = currentPosition + speed * deltaTime;
positionData(i, :) = currentPosition;
plotHandle = plot(positionData(:, 1), positionData(:, 2), '-o');
xlabel('X Position (m)');
ylabel('Y Position (m)');
title('2D Plot of Drone Flight Path');
plot(refScaleX, refScaleY, 'r-', 'LineWidth', 2);
text(100, 0, '100m', 'HorizontalAlignment', 'right');
imageFileName = 'DroneFlightPath2DPlot.png';
saveas(plotHandle, imageFileName);
disp(['2D plot saved as an image: ', imageFileName]);
To display this route image on Google Map.
- Screenshot Flight Area: Open Google Maps, navigate to your flight zone, and take a screenshot.
- Draw 100-Meter Ruler: On the screenshot, draw a ruler that measures 100 meters, using Google Maps' scale for overlaying later onto route image.
- Launch your preferred drawing software (Ex: Adobe Photoshop) which can edit layers of images. Import the screenshot.
- Overlay Tello's Route: Copy and paste the Tello drone's route image onto a new layer in the drawing application.
- Match Rulers: Resize the Tello's route layer so that its ruler aligns with the 100-meter ruler on the Google map's screenshot.
- Adjust Route Position: Rotate and move the Tello's route to align with the takeoff point on the map.
These steps will help you accurately plot the Tello drone's route over the Google map.
Edit: You can also use MATLAB mobile App ( https://www.mathworks.com/products/matlab-mobile.html ) to display the route on Google Maps. You can insall MATLAB mobile app in the mobile and fix the mobile on the drone. Using this mobile app, you can collect GPS data and later plot the route on Google Maps.
Hope it helps in resolving your query!