Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Martina Maggio
gps-modeling
Commits
b4963b21
Commit
b4963b21
authored
Feb 26, 2019
by
Claudio Mandrioli
Browse files
polished plotting code
parent
3ce928f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/plot_data.m
0 → 100644
View file @
b4963b21
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Script for data plot:
% plots the trajecotry and the stimation accuracy with the GPS turn on
% signal
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% display the overall error (root mean square)
out_data
.
error
% Display trajectory estimated with sensor fusion against trajectory for the
% GPS alone always on
h
=
zeros
(
1
,
2
);
figure
(
1
)
hold
on
plot
(
in_data
.
GNSS
.
pos_ned
(
2
,:),
in_data
.
GNSS
.
pos_ned
(
1
,:),
'b-'
);
h
(
1
)
=
plot
(
in_data
.
GNSS
.
pos_ned
(
2
,:),
in_data
.
GNSS
.
pos_ned
(
1
,:),
'b.'
);
h
(
2
)
=
plot
(
out_data
.
x_h
(
2
,:),
out_data
.
x_h
(
1
,:),
'-'
);
title
(
'Trajectory'
)
ylabel
(
'North [m]'
)
xlabel
(
'East [m]'
)
legend
(
h
,
'GNSS position estimate'
,
'GNSS aided INS trajectory'
)
axis
equal
grid
on
%plot control signal P and turn on signal of the GPS
h
=
zeros
(
1
,
2
);
figure
(
2
)
hold
on
h
(
1
)
=
plot
(
out_data
.
P_store
);
h
(
2
)
=
plot
(
out_data
.
turn
);
legend
(
h
,
'sum of the trace of P'
,
'antenna turned ON'
)
grid
on
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment