scenarioSpiceSpacecraft
Overview
Demonstrates how to use Module: spiceInterface to load a Spice kernel with the Hubble orbital information and use the corresponding TransRefMsgPayload output message to specify the spacecraft motion. With this approach the spacecraft attitude is still dynamic and can achieve the same inertial pointing goal as setup in scenarioAttitudeFeedback.
The script is found in the folder basilisk/examples
and executed by using:
python3 scenarioSpiceSpacecraft.py
The simulation layout is
shown in the following illustration. Note that here the spiceInterface
module
must be executed prior to Module: spacecraft as the
TransRefMsgPayload input message must be properly setup before initializing
the spacecraft module which reads this in during Reset()
.
When the simulation completes 2 plots are shown for the MRP attitude tracking error history, as well as the Hubble inertial orbital coordinates with respect to the Earth.
Illustration of Simulation Results
show_plots = True