-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathProvaPlot.m
32 lines (29 loc) · 1002 Bytes
/
ProvaPlot.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
sp = skyplot([],[]);
for tIdx = 1:LEO_PNT(1).numTimeStamps
set(sp, ...
AzimuthData=LEO_PNT_T.azTotal(tIdx,:), ...
ElevationData=LEO_PNT_T.elTotal(tIdx,:), ...
LabelData=LEO_PNT_T.NameTotal,ColorOrder=(tIdx*40/256)*ones(1,3));
% For slower animation, use 'drawnow' instead of 'drawnow limitrate'
drawnow
pause(0.5)
end
% Find the PRN index of each satellite
satNames = char(sat(:).Name');
prnIndex = double(string(satNames(:,5:end)));
% To better visualize each GPS satellite, scale the status with the PRN
% index
acStatsAllTime = double(acStatsAllTime);
acStatsAllTime(acStatsAllTime == 0) = NaN;
% Plot the satellite visibility chart
colors = colororder;
firstLineColor = colors(1,:);
plot(timeHistory,prnIndex.*acStatsAllTime, ...
Color=firstLineColor,LineWidth=1)
xlim([timeHistory(1) timeHistory(end)])
ylim([min(prnIndex)-1 max(prnIndex)+1])
xlabel("Time")
ylabel("Satellite PRN Index")
title("Satellite Visibility Chart")
yticks(prnIndex)
grid on