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. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.
Function Signature
Arguments
fromAttitude
|
|
Description:
|
Attitude system of input state.
|
Valid Values:
|
Value
|
Label
|
0
|
ICRF
|
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
|
ICRF
|
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);
|
See also
AttitudeConvert
Attitude Reference Frames
|