diff --git a/docs/source/Support/bskReleaseNotes.rst b/docs/source/Support/bskReleaseNotes.rst index e894508fb9..fb9c151ee8 100644 --- a/docs/source/Support/bskReleaseNotes.rst +++ b/docs/source/Support/bskReleaseNotes.rst @@ -38,6 +38,7 @@ Version |release| on the AVS lab web page that used to host the documentation. - Updated :ref:`scenarioBasicOrbitStream` to add the ability to pause and resume the live BSK stream - Added documenation on installing with ``pip`` via source code in :ref:`pipInstall` +- Updated :ref:`scenarioOrbitManeuver` to include a SPICE module that rotates the Earth Version 2.5.0 (Sept. 30, 2024) diff --git a/examples/scenarioOrbitManeuver.py b/examples/scenarioOrbitManeuver.py index 4ef3f71b10..bedfec1f73 100755 --- a/examples/scenarioOrbitManeuver.py +++ b/examples/scenarioOrbitManeuver.py @@ -158,7 +158,7 @@ def run(show_plots, maneuverCase): # add spacecraft object to the simulation process scSim.AddModelToTask(simTaskName, scObject) - # setup Gravity Body + # setup Gravity Body and SPICE definitions gravFactory = simIncludeGravBody.gravBodyFactory() earth = gravFactory.createEarth() earth.isCentralBody = True # ensure this is the central gravitational body @@ -166,6 +166,14 @@ def run(show_plots, maneuverCase): # attach gravity model to spacecraft gravFactory.addBodiesTo(scObject) + # setup spice library for Earth ephemeris + timeInitString = "2024 September 21, 21:00:00.0 TDB" + spiceObject = gravFactory.createSpiceInterface(time=timeInitString, epochInMsg=True) + spiceObject.zeroBase = 'Earth' + + # need spice to run before spacecraft module as it provides the spacecraft translational states + scSim.AddModelToTask(simTaskName, spiceObject) + # # setup orbit and simulation time # @@ -291,6 +299,9 @@ def run(show_plots, maneuverCase): scSim.ConfigureStopTime(simulationTime + T2 + T3) scSim.ExecuteSimulation() + # unload Spice kernel + gravFactory.unloadSpiceKernels() + # # retrieve the logged data #