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
2b94477b
Commit
2b94477b
authored
Feb 26, 2019
by
Claudio Mandrioli
Browse files
removed wrong comments
parent
b4963b21
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/GPSaidedINS_cycling.m
View file @
2b94477b
...
...
@@ -301,12 +301,12 @@ end
function
sv
=
random_satellites
(
sv_old
)
coin
=
random
(
'uniform'
,
0
,
1
);
sv
=
sv_old
;
if
sv_old
==
6
%simulate satellite loss of visibility
if
sv_old
==
6
if
coin
<
0.005
sv
=
5
;
end
end
if
sv_old
==
5
%simulate satellite loss of visibility
if
sv_old
==
5
if
coin
>
0.99
sv
=
6
;
end
...
...
@@ -314,7 +314,7 @@ if sv_old==5 %simulate satellite loss of visibility
sv
=
4
;
end
end
if
sv_old
==
4
%simulate satellite loss of visibility
if
sv_old
==
4
if
coin
>
0.99
sv
=
5
;
end
...
...
@@ -322,7 +322,7 @@ if sv_old==4 %simulate satellite loss of visibility
sv
=
3
;
end
end
if
sv_old
==
3
%simulate satellite loss of visibility
if
sv_old
==
3
if
coin
>
0.95
sv
=
4
;
end
...
...
Write
Preview
Supports
Markdown
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