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 Module: simpleNav and Module: 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 Module: extForceTorque.
The control output in the spacecraft body frame can be found in the following plot:
The difference between the spacecraft position and velocity and associated references may be found in the figures below:
Finally, the attitude and attitude rate is given in the plots below.
The script is found in the folder basilisk/examples
and executed by using:
python3 scenarioSmallBodyFeedbackControl.py
- scenarioSmallBodyFeedbackControl.plot_position(time, r_BO_O_truth, r_BO_O_meas)[source]
Plot the relative position result.