diff --git a/matlab/GPSaidedINS_cycling.m b/matlab/GPSaidedINS_cycling.m index 42a00c6535b07b3237c9bb46d0bba27559c0090f..87d5a6d1bcb0bbda7a19891c5214b369afe634ff 100644 --- a/matlab/GPSaidedINS_cycling.m +++ b/matlab/GPSaidedINS_cycling.m @@ -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