experience and innovation

Now Hiring!

---------------------------------------------------------------------------
   Draw a spacecraft. You can display planets and the sun as options.
   You can choose the frame. If you want to pick the planet fixed frame
   omit .b in the planet data structure and transform .rSC into the planet
   fixed frame. 
---------------------------------------------------------------------------
   Form:
   h = DrawSC( mode, g, e, h )
---------------------------------------------------------------------------

   ------
   Inputs
   ------
   mode        (1,:) 'run' or 'init'
   g           (:)   Spacecraft image data structure
   e                 Environment data structure
                     .rSC          (3,1) spacecraft orbit position (km)
                     .planet       (:)
                                        .r     (3,1) Position
                                        .name  (3,1) Planet name
                                        .b     (3,3) Rotation matrix
                     .sun          (3,1) sun location
                     .units        (1,:) unit of measurement 'm' 'in' 'ft'
   h           (1,:) Handles to the display

   -------
   Outputs
   -------
   h           (1,:) Handles to the display

---------------------------------------------------------------------------