Spacecraft.GetRelativeCartesianState(Spacecraft, Variable) Method

Top 

Description

Returns the relative Cartesian state of the calling Spacecraft in reference to the refSC in the specified reference frame. Note that if the epochs of the calling Spacecraft and the refSC do not match, this will report an error.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

Spacecraft.GetRelativeCartesianState(

Spacecraft refSC,


Variable refFrame)

 

 

Arguments

refSC


Description:

The Spacecraft to which the reference state will be evaluted.

 

 

refFrame


Description:

The reference frame in which the state elements will be evaluated.

Valid Values:

Value

Label

0

ICRF

1

VNB

2

LVLH

5

UVW

6

RIC

 

 

 

 

Return Value

Type:

Array of number (size = 6)

 

 

Returns the relative Cartesian state in units of km and km/s.

 

Syntax

myArray1 = mySpacecraft1.GetRelativeCartesianState(mySpacecraft2, myVariable1);

 

 

See also

Spacecraft Object

Spacecraft.GetRelativeCartesianState

Spacecraft Propagation Guide

Coverage and Contact Analysis Guide