Status of access between first and last node defining access analysis
Obtain Access Status between Satellite and Ground Station
Create a satellite scenario object.
startTime = datetime(2021,4,30); % 30 April 2021, 12:00 AM UTC stopTime = datetime(2021,5,1); % 1 May 2021, 12:00 AM UTC sampleTime = 60; % seconds sc = satelliteScenario(startTime,stopTime,sampleTime);
Add a satellite to the scenario.
semiMajorAxis = 10000000; % meters eccentricity = 0; inclination = 10; % degrees rightAscensionOfAscendingNode = 0; % degrees argumentOfPeriapsis = 0; % degrees trueAnomaly = 0; % degrees sat = satellite(sc,semiMajorAxis,eccentricity, ... inclination,rightAscensionOfAscendingNode, ... argumentOfPeriapsis,trueAnomaly);
Add a ground station to the scenario.
gs = groundStation(sc);
Add access analysis between the satellite and the ground station.
ac = access(sat,gs);
Obtain the access status at 30 April 2021, 5:34 PM UTC.
time = datetime(2021,4,30,17,34,0); s = accessStatus(ac,time)
s = logical 0
ac — Access analysis
row vector of
Access analysis, specified as a row vector of
timeIn — Time at which output is calculated
Time at which the output is calculated, specified as a
datetime scalar. If
no time zone is specified in
timeIn, the time zone is assumed to be
Universal Time Coordinated (UTC).
s — Access analysis status
column vector | matrix
Access analysis status, returned as a column vector or a matrix. If
timeIn is specified,
s is a column vector.
Otherwise, the output is a matrix. The rows of the matrix correspond to the access
ac, and the columns correspond to the time sample. The
status at a given instant is
true) if access
exists between each pair of adjacent nodes defined by
example, in a given pair, say defined by node1 and node2, node1 has access to node2 and
If a node is a satellite, then the satellite has access to the adjacent node if both nodes are in line of sight of each other.
If a node is a ground station, then the ground station has access to the adjacent node if the elevation angle of the node with respect to the ground station is greater than or equal to the
If a node is a conical sensor, then the conical sensor has access to the adjacent node if the latter is in the field of view of the former. If the conical sensor is attached to a ground station directly or via a gimbal, then the elevation angle of the adjacent node with respect to the ground station must be greater than or equal to the
timeOut — Time samples of output access status
scalar | vector
Time samples of the output access status, returned as a scalar or vector. If the
time history of the access status is returned,
timeOut is a row