Hello!
May i ask why when i tried to plot a 3D figure of the flight path of my field test from mission planner to matlab, theres a difference in the values? Like for mission planner and on-site i flew the quadcopter plot 4m whereas the matlab plot shows 40. On top of this, i flew about 10m in longitude on-site but matlab indicates on 1.5m. May i check if isit the issue with gps or the matlab software?
Regards
Junhui

3 件のコメント

Cris LaPierre
Cris LaPierre 2019 年 4 月 6 日
Share your code and data.
Jun Hui
Jun Hui 2019 年 4 月 6 日
The code that i type in matlab is:
clc
clear all
close all
load('2019-02-20 17-18-30.bin-110182.mat')
figure(1);
x=GPS(:,9);
y=GPS(:,8);
z=GPS(:,10);
plot3(x,y,z,'linewidth',2);
hold on;
grid on;
x = 104
y = 1.31
z = 18
hold on;
%plot3(x,y,z,'mo')
Height= [0 60 40];
Length= [0 110 110];
Width= [0 1.4 1.4];
x1 = 0
y1 = 0
z1 = 0
x2 = 110
y2 = 1.4
z2 = 40
%plot3(Length,Width,Height,'linewidth',2);
%plot3(x,y,z,'mo')
%plot3(x1,y1,z1,'kx')
%plot3(x2,y2,z2,'ro')
grid on;
hold on;
xlabel('Latitude')
ylabel('Longitude')
zlabel('Altitude')
The mission planner altitude plot, matlab 3d plot, mission planner bin file and the MAT table is as attached
Jun Hui
Jun Hui 2019 年 4 月 6 日
The mission planner bin file is here*

サインインしてコメントする。

回答 (1 件)

Cris LaPierre
Cris LaPierre 2019 年 4 月 6 日

0 投票

I can confirm that MATLAB is plotting the values recorded in the GPS file. How are the GPS values obtained? In what units?

カテゴリ

ヘルプ センター および File ExchangeMarine and Underwater Vehicles についてさらに検索

質問済み:

2019 年 4 月 6 日

回答済み:

2019 年 4 月 6 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by