주요 콘텐츠

이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.

access

위성 시나리오에 액세스 분석 객체 추가

R2021a 이후

설명

access(asset1,asset2,...)asset1, asset2 등의 노드에 의해 정의된 Access 분석 객체를 추가합니다.

예제

ac = access(___,'Viewer',Viewer)는 이전 구문의 모든 입력 인수 조합에 추가로 뷰어를 설정합니다. 예를 들어, 'Viewer',v1는 뷰어 v1를 선택합니다.

ac = access(___)는 행 벡터 ac에 추가된 액세스 분석 객체를 반환합니다.

예제

모두 축소

위성 시나리오를 만들고 위도, 경도로부터 지상국을 추가합니다.

startTime = datetime(2020,5,1,11,36,0);
stopTime = startTime + days(1);
sampleTime = 60;
sc = satelliteScenario(startTime,stopTime,sampleTime);
lat = 10;
lon = -30;
gs = groundStation(sc,lat,lon);

케플러 요소를 사용하여 위성을 추가합니다.

semiMajorAxis = 10000000;
eccentricity = 0;
inclination = 10; 
rightAscensionOfAscendingNode = 0; 
argumentOfPeriapsis = 0; 
trueAnomaly = 0; 
sat = satellite(sc,semiMajorAxis,eccentricity,inclination, ...
        rightAscensionOfAscendingNode,argumentOfPeriapsis,trueAnomaly);

시나리오에 액세스 분석을 추가하고 위성과 지상국 사이의 액세스 구간 테이블을 구합니다.

ac = access(sat,gs);
intvls = accessIntervals(ac)
intvls=8×8 table
       Source              Target          IntervalNumber         StartTime                EndTime           Duration    StartOrbit    EndOrbit
    _____________    __________________    ______________    ____________________    ____________________    ________    __________    ________

    "Satellite 2"    "Ground station 1"          1           01-May-2020 11:36:00    01-May-2020 12:04:00      1680          1            1    
    "Satellite 2"    "Ground station 1"          2           01-May-2020 14:20:00    01-May-2020 15:11:00      3060          1            2    
    "Satellite 2"    "Ground station 1"          3           01-May-2020 17:27:00    01-May-2020 18:18:00      3060          3            3    
    "Satellite 2"    "Ground station 1"          4           01-May-2020 20:34:00    01-May-2020 21:25:00      3060          4            4    
    "Satellite 2"    "Ground station 1"          5           01-May-2020 23:41:00    02-May-2020 00:31:00      3000          5            5    
    "Satellite 2"    "Ground station 1"          6           02-May-2020 02:50:00    02-May-2020 03:39:00      2940          6            6    
    "Satellite 2"    "Ground station 1"          7           02-May-2020 05:58:00    02-May-2020 06:47:00      2940          7            7    
    "Satellite 2"    "Ground station 1"          8           02-May-2020 09:06:00    02-May-2020 09:56:00      3000          8            9    

시나리오를 플레이하여 지상국을 시각화하세요.

play(sc)

위성 시나리오를 만듭니다.

startTime = datetime(2020,5,1,11,36,0);
stopTime = startTime + days(1);
sampleTime = 60;
sc = satelliteScenario(startTime,stopTime,sampleTime);
lat = 10;
lon = -30;

위성 시나리오에서 주어진 궤적을 사용하여 플랫폼을 추가합니다.

trajectory = geoTrajectory([40.6413,-73.7781,10600;32.3634,-64.7053,10600],[0,2*3600],AutoPitch=true,AutoBank=true);
pltf = platform(sc,trajectory);

케플러 요소를 사용하여 위성을 추가합니다.

semiMajorAxis = 10000000;
eccentricity = 0;
inclination = 10; 
rightAscensionOfAscendingNode = 0; 
argumentOfPeriapsis = 0; 
trueAnomaly = 0; 
sat = satellite(sc,semiMajorAxis,eccentricity,inclination, ...
        rightAscensionOfAscendingNode,argumentOfPeriapsis,trueAnomaly);

시나리오에 액세스 분석을 추가하고 위성과 플랫폼 사이의 액세스 구간 테이블을 얻습니다.

ac = access(sat,pltf);
intvls = accessIntervals(ac)
intvls=7×8 table
       Source           Target       IntervalNumber         StartTime                EndTime           Duration    StartOrbit    EndOrbit
    _____________    ____________    ______________    ____________________    ____________________    ________    __________    ________

    "Satellite 2"    "Platform 1"          1           01-May-2020 14:07:00    01-May-2020 14:54:00      2820          1            2    
    "Satellite 2"    "Platform 1"          2           01-May-2020 17:11:00    01-May-2020 18:01:00      3000          3            3    
    "Satellite 2"    "Platform 1"          3           01-May-2020 20:16:00    01-May-2020 21:06:00      3000          4            4    
    "Satellite 2"    "Platform 1"          4           01-May-2020 23:22:00    02-May-2020 00:11:00      2940          5            5    
    "Satellite 2"    "Platform 1"          5           02-May-2020 02:31:00    02-May-2020 03:15:00      2640          6            6    
    "Satellite 2"    "Platform 1"          6           02-May-2020 05:43:00    02-May-2020 06:22:00      2340          7            7    
    "Satellite 2"    "Platform 1"          7           02-May-2020 08:54:00    02-May-2020 09:33:00      2340          8            8    

시나리오를 플레이하여 플랫폼과 위성을 시각화하세요.

play(sc)

platform_accessintervals_example.png

입력 인수

모두 축소

Satellite, GroundStation, ConicalSensors 또는 Platform 객체는 스칼라 또는 벡터로 지정됩니다. 이러한 객체는 동일한 satelliteScenario 객체에 속해야 합니다. 이 함수는 asset1의 해당 자산의 Accesses 속성에 액세스 분석 객체를 추가합니다.

  • 주어진 노드의 자산이 스칼라인 경우, 모든 분석 객체는 해당 노드 위치에 동일한 에셋을 사용합니다.

  • 주어진 노드의 자산이 벡터인 경우, 해당 길이는 액세스 분석 객체의 수와 같아야 합니다. 각 액세스 분석 객체는 해당 노드 위치에 대한 자산 벡터의 해당 요소를 사용합니다.

위성 시나리오 뷰어로, satelliteScenarioViewer 객체로 구성된 스칼라, 벡터 또는 배열로 지정됩니다. 시나리오의 AutoSimulate 속성이 false인 경우, 시나리오에 위성을 추가하면 이전에 사용 가능했던 타임라인 및 재생 위젯이 비활성화됩니다.

출력 인수

모두 축소

입력 객체 간의 액세스 분석으로, 스칼라 또는 벡터로 반환됩니다. 액세스 분석에 대한 자세한 내용은 Access 객체를 참조하세요.

데이터형: matlabshared.satellitescenario.Access

참고

AutoSimulate 속성이 false로 설정된 경우 SimulationStatusaccess 함수를 호출하기 위해 NotStarted여야 합니다. 그렇지 않으면 restart 함수를 사용하여 SimulationStatusNotStarted로 재설정합니다. restart는 시뮬레이션 데이터도 지운다는 점에 유의하세요.

버전 내역

R2021a에 개발됨