.. _scenarioFormationReconfig: scenarioFormationReconfig ========================= Overview -------- This script sets up a formation flying scenario with two spacecraft. The deputy spacecraft reconfigures its relative orbit in one orbit from one initial orbital element difference to target orbital element difference. This script is found in the folder ``xmera/examples`` and executed by using:: python3 scenarioFormationReconfig.py The simulation layout is shown in the following illustration. Two spacecraft are orbiting the earth at close distance. No perturbation in assumed. Each spacecraft sends a :ref:`simpleNav` output message of type :ref:`NavAttMsgPayload` message at a certain period to :ref:`spacecraftReconfig`, where burn scheduling is executed to achieve reconfiguration. .. image:: /_images/static/test_scenarioFormationReconfig.svg :align: center Illustration of Simulation Results ---------------------------------- :: show_plots = True, useRefAttitude = False In this case, reference attitude input is omitted. Therefore, attitude control is executed to achieve thruster burn. This resulting feedback control error is shown below. .. image:: /_images/Scenarios/scenarioFormationReconfig10.svg :align: center .. image:: /_images/Scenarios/scenarioFormationReconfig20.svg :align: center :: show_plots = True, useRefAttitude = False In this case, reference attitude input is included. Therefore, attitude control is executed to both achieve thruster burn and reference attitude. This resulting feedback control error is shown below. .. image:: /_images/Scenarios/scenarioFormationReconfig11.svg :align: center .. image:: /_images/Scenarios/scenarioFormationReconfig21.svg :align: center