This module is intended to be the last module in the guidance module chain.
It’s input is the reference orientation message generated by a prior module,
and the body orientation. It’s output is a guidance attitude to align the body
frame with the reference. This module allows for a corrected reference frame,
or a equivalent corrected reference frame to account for a corrected body frame.
In the output AttGuidMessage, the B frame is the (uncorrected) body frame, the
R frame is the corrected reference frame (if applicable). See the Attitude
Reference Correction Software for details. This module was previously
named Attitude Tracking Error Software.
This method is called whenever some key parameters are changedand any new local variables are required to be recalculated. Thiscan be called by the software chains if a configuration of somevalues are updated.