AttitudeConvert(Variable, Variable, Spacecraft, Array) Function

Top 

Description

Converts the from3Vector from the fromAttitude reference system to the toAttitude reference system, using referenceSpacecraft as the reference Spacecraft.

 

This overload should only be used to convert position vectors. To convert a velocity, be sure to use the overload that allows you to specify the conversion type as an additional argument.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode.

 

Function Signature

AttitudeConvert(

Variable fromAttitude,


Variable toAttitude,


Spacecraft referenceSpacecraft,


Array from3Vector)

 

 

Arguments

fromAttitude


Description:

Attitude system of input state.

Valid Values:

Value

Label

0

Mean of J2000 inertial reference system

1

Spacecraft's current velocity-normal-binormal (VNB) reference system

2

Spacecraft's current local vertical and local horizontal (LVLH) reference system

3

Spacecraft's body coordinate system (BCS)

4

Spacecraft's current geodetic system

5

Spacecraft's current UVW reference system

6

Spacecraft's current RIC reference system

 

 

 

toAttitude


Description:

Attitude system of output state.

Valid Values:

Value

Label

0

Mean of J2000 inertial reference system

1

Spacecraft's current velocity-normal-binormal (VNB) reference system

2

Spacecraft's current local vertical - local horizontal (LVLH) reference system

3

Spacecraft's body coordinate system (BCS)

4

Spacecraft's current geodetic system

5

Spacecraft's current UVW reference system

6

Spacecraft's current RIC reference system

 

 

 

referenceSpacecraft


Description:

The Spacecraft object to which the attitude frames are referenced.

 

 

from3Vector


Description:

A three-element array containing the position vector in the input attitude system.

Required Size:

At least 3

 

 

 

Return Value

Type:

Array of number (size = 3)

 

 

Returns a three-element array containing the converted vector in the output attitude system.

 

Syntax

myArray1 = AttitudeConvert(myVariable1, myVariable2, mySpacecraft1, myArray2);

 

 

Example 1

 

 

Example 2

 

 

See also

AttitudeConvert

Attitude Reference Frames