Main Content

Calculate shortest quaternion rotation

**Library:**Aerospace Blockset / Aerospace Blockset CubeSat Simulation Library

The Attitude Profile block calculates the shortest quaternion rotation that aligns the primary alignment vector with the primary constraint vector. A quaternion is defined using the scalar-first convention. Aerospace Blockset™ uses quaternions that are defined using the scalar-first convention.

Provide the primary constraint as either a pointing mode:

`Point at nadir`

`Point at celestial body`

`Point at LatLonAlt`

Or via a custom constraint vector. The block then aligns secondary alignment and constraint vectors as much as possible without breaking primary alignment.

The Attitude Profile block is available only in the Aerospace Blockset CubeSat Simulation Library, which is available through the Add-On Explorer.

To access the Aerospace Blockset CubeSat Simulation Library, type
`asbCubeSatBlockLib`

in the MATLAB^{®} Command Window.

For more information on the coordinate systems the Attitude Profile block uses, see Algorithms.

The Attitude Profile block is available only through the Add-On Explorer.

Attitude Profile | CubeSat Vehicle | `juliandate`

| Orbit Propagator