StellarOpNav.estimate_attitude¶
giant.stellar_opnav.stellar_class
:
- StellarOpNav.estimate_attitude()[source]¶
This method estimates an updated attitude for each image based on the identified stars in the image.
For each turned on image in the
camera
attribute this method provides the attitude estimation routines with thematched_catalogue_unit_vectors_inertial
, and the camera frame unit vectors corresponding to thematched_extracted_image_points
. Theestimate()
method of the attitude estimation class is then called, and the resulting solved for rotation is stored as therotation_inertial_to_camera
attribute for each image. Finally, the updated attitude information is used to update the following:The unit vectors in the camera frame for the matched image points are determined using the
pixels_to_unit()
method of the camera model.For a more thorough description of the attitude estimation routine see the
stellar_opnav.estimators
documentation.When attitude estimation is successful for an image (that is it was attempted and didn’t error), then the
OpNavImage.pointing_post_fit
flag is updated toTrue
. When attitude estimation isn’t successful for an image (it wasn’t attempted due to a lack of stars or it failed) the theOpNavImage.pointing_post_fit
is set toFalse
Warning
This method overwrites the attitude information in the
rotation_inertial_to_camera
attribute and does not save old information anywhere. If you want this information saved be sure to store it yourself for each image.