Overview
mrpFeedback implements a Modified Rodrigues Parameter (MRP) feedback control law. Given attitude guidance error from an AttGuidMsg, it computes a control torque about the spacecraft body frame. Two control-law variants are available via controlLawType. The module optionally incorporates reaction wheel momentum feedback to decouple wheel angular momentum from the attitude control.
Configuration parameters
Proportional gain applied to the MRP attitude error [rad/s].
Rate-error feedback gain [N·m·s].
Integral gain on rate error [N·m]. Set to
-1 to disable integral action.Anti-windup saturation limit on the integral state [N·m].
Selects between the two available control law formulations.
0 is the default; consult the module documentation for the analytical differences.Known external torque about body point B in the body frame [N·m]. Used as a feedforward term.
Input messages
Attitude guidance input message. Provides the MRP attitude error
sigma_BR, rate error omega_BR_B, reference rate omega_RN_B, and reference rate derivative domega_RN_B.Vehicle configuration message containing the spacecraft inertia tensor
ISCPntB_B.(Optional) Reaction wheel speed array. Used to compute wheel angular momentum feedback. Connect when RWs are present.
(Optional) Reaction wheel configuration parameters. Required when
rwSpeedsInMsg is connected.(Optional) RW availability flags to exclude failed wheels from the momentum computation.
Output messages
Commanded spacecraft control torque [N·m] in the body frame.
Integral-feedback component of the control torque [N·m] in the body frame (useful for diagnostics).