Overview
mrpSteering implements a steering law that maps an MRP attitude error to a desired angular-rate command. It is designed to be the outer loop of a cascaded attitude control architecture, with its output consumed by a rate-tracking inner loop (e.g., a rate servo or reaction-wheel speed controller).
The steering saturation function uses a proportional and a cubic term to smoothly bound the commanded rate.
Configuration parameters
Proportional gain applied to the MRP attitude error [rad/s].
Cubic gain applied to the MRP error in the steering saturation function [rad/s]. Increases damping for large errors.
Maximum angular-rate command magnitude [rad/s]. Acts as the saturation bound of the steering law.
Boolean flag (
0 or 1). When set to 1, the outer-loop feedforward term (reference angular acceleration) is excluded from the rate command. Default: 0.Input messages
Attitude guidance input message. Provides the MRP error
sigma_BR, angular-rate error omega_BR_B, reference rate omega_RN_B, and reference angular acceleration.Output messages
Commanded body angular-rate vector [rad/s] to be tracked by the inner rate loop.
C-level functions
Core steering-law computation callable from C/C++.Writes the commanded rate
omega_ast and its derivative omega_ast_p given attitude error sigma_BR.