STK Components for .NET 2019 r5

## StkAttitudeFileAttitudeTimeQuaternionsAttitudeData Property |

Gets or sets the attitude data relative to CoordinateAxes.
Note that the convention here is not the usual convention elsewhere in STK Components,
and instead represents the convention used in the STK Attitude Files themselves.
See the remarks for more information or use ConvertToStkAttitudeConvention(DateMotionCollectionUnitQuaternion, Cartesian).

Syntax

Remarks

The convention used by STK attitude files for representing rotational motion is different
than the convention used in STK Components. Specifically, the derivative information is
expressed

- in radians in STK Components and in degrees in the STK attitude file, and
- with respect to the originating axes in STK Components and is expressed with respect to the destination axes in the STK attitude file.

Examples

The following example indicates how to convert rotational motion using the STK Components
convention to the STK attitude file convention.

C#

// Get some rotational motion which uses the STK Components convention of rates expressed // with respect to the originating axes and in radians. Motion<UnitQuaternion, Cartesian> stkComponentsMotion = GetMotion(); // Convert the motion to use the STK attitude file convention of rates expressed with respect // to the destination axes and in degrees. UnitQuaternion rotation = stkComponentsMotion.Value; Cartesian temp = stkComponentsMotion.FirstDerivative.Rotate(rotation); Cartesian rotationalVelocity = new Cartesian(Trig.RadiansToDegrees(temp.X), Trig.RadiansToDegrees(temp.Y), Trig.RadiansToDegrees(temp.Z)); temp = stkComponentsMotion.SecondDerivative.Rotate(rotation); Cartesian rotationalAcceleration = new Cartesian(Trig.RadiansToDegrees(temp.X), Trig.RadiansToDegrees(temp.Y), Trig.RadiansToDegrees(temp.Z)); Motion<UnitQuaternion, Cartesian> stkAttitudeFileMotion = new Motion<UnitQuaternion, Cartesian>(rotation, rotationalVelocity, rotationalAcceleration);

See Also