scenarioSmallBodyFeedbackControl#

Overview#

This scenario demonstrates how to use the smallBodyWaypointFeedback() module for waypoint to waypoint motion about a small body. In this scenario, the spacecraft holds an inertial pointing attitude while it moves to a waypoint defined in the small body’s Hill frame. The simpleNav and planetNav moduels provide measurements to the control law in the form of NavTransMsgPayload, NavAttMsgPayload, and EphemerisMsgPayload input messages. The control law outputs a CmdForceBodyMsgPayload, which is read in by extForceTorque.

The control output in the spacecraft body frame can be found in the following plot:

_images/Scenarios/scenarioSmallBodyFeedbackControl3.svg

The difference between the spacecraft position and velocity and associated references may be found in the figures below:

_images/Scenarios/scenarioSmallBodyFeedbackControl1.svg _images/Scenarios/scenarioSmallBodyFeedbackControl2.svg

Finally, the attitude and attitude rate is given in the plots below.

_images/Scenarios/scenarioSmallBodyFeedbackControl4.svg _images/Scenarios/scenarioSmallBodyFeedbackControl5.svg

The script is found in the folder xmera/examples and executed by using:

python3 scenarioSmallBodyFeedbackControl.py