GeoSwitchingMission:

--------------------------------------------------------------------------
   Simulate a geocentric trajectory with on/off switching.
   This uses the control laws developed in McInnes. The sail is turned "off"
   during half the orbit by placing it edge-on to the sun, or at a pitch angle
   of 90 degrees. Models solar pressure only, without planetary influences.

   Functions demonstrated:
       PlanetOptimalTraj

   Eclipses are modeled.

   Since version 10.
--------------------------------------------------------------------------
   Form:
   [xPlot, t] = GeoSwitchingMission( el0, jD0, nDays )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   el0      (6,1)     Initial Keplerian orbital elements
   jD0      (1,1)     Epoch, Julian date
   nDays    (1,1)     Number of days to simulate

   -------
   Outputs
   -------
   xPlot
   t

--------------------------------------------------------------------------
   Reference: Colin R. McInnes, "Solar Sailing: Technology, Dynamics and Mission
              Applications", Springer Praxis, London, 1999, pp. 156-158,
              Sec. 4.4.2.3, "Locally Optimal Steering - Planet-Centered Orbits"
--------------------------------------------------------------------------

Children:

Common: Database/Constant
Common: Graphics/InformDlg
Common: Graphics/NewFig
Common: Graphics/Plot3D
Common: Graphics/TimeLabl
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/Unit
OrbitMiniToolbox: Support/El2RV
OrbitMiniToolbox: Support/FOrbCart
SC: BasicOrbit/Period
SC: BasicOrbit/RV2El
SC: BasicOrbit/RVFromKepler
SC: Ephem/Eclipse
SC: Ephem/SunV1
Sail: Guidance/PlanetOptimalTraj
Sail: Guidance/SailSMAChange
Sail: Utilities/SailPropsToAccel