Path: CubeSat/Visualization
% Draw the Earth, CubeSat model, orbit, sensor cone(s), and GPS constellation
The spacecraft can be left out (empty) to just view the
cones. If GPS satellites are requested the elements will be loaded from
Celestrak, requiring an internet connection.
--------------------------------------------------------------------------
Form:
out = DrawSpacecraftInOrbit( jD0, orbit, gSC, qEB, planet, cone, gps )
--------------------------------------------------------------------------
------
Inputs
------
jD0 (1,1) Julian date epoch.
orbit (1,6) Orbital elements [a,i,W,w,e,M]
gSC (.) Data structure array or mat-file that stores it.
Each element of array is a component in the body.
.name String name of component
.v Vertices
.f Faces
.scale Scale
.color Color of each component
.alpha Transparency (0-1) of each component
qEB (4,1) ECI to Body quaternion. Uses [1;0;0;0] if not
entered.
planet (:) Name of planet file to use (e.g. 'Earth')
cone (.) Cone geometry. Includes:
.fov Field of view
.pitch Pitch angle from nadir
.azimuth Azimuth angle from north
gps (1,1) Flag to include GPS constellation or not.
-------
Outputs
-------
out (.) Data structure with satellite Earth fixed
position, cone
See also: PlaybackOrbitSim.m
--------------------------------------------------------------------------