AGI STK Objects 11 Send comments on this topic.
IAgVeAttitudeRealTime Interface





Description

Real time attitude interface.

Object Model



Public Methods

Public Method AddCBFQuaternion Adds attitude data based on a time-ordered set of quaternions interpreted relative to CBF.
Public Method AddECIYPR Adds attitude data based on a time-ordered set of yaw, pitch, roll angles in the J2000 ECI coordinate system.
Public Method AddEuler Adds attitude data based on a time-ordered set of Euler angles.
Public Method AddQuaternion Adds attitude data based on a time-ordered set of quaternions.
Public Method AddYPR Adds attitude data based on a time-ordered set of yaw, pitch and roll angles.
Public Method ClearAll Clear attitude data created using AddXXX commands

Public Properties

Public Property BlockFactor A block factor used to help size allocated memory used to hold the history
Public Property DataReference Returns a reference attitude profile for incoming attitude data.
Public Property Duration Get look ahead/look behind duration.
Public Property LookAheadMethod Look ahead method can be extrapolate or hold.

Interfaces

Implemented Interface
IAgVeAttitude

Example

Add attitude data based on a time-ordered set of quaternions interpreted relative to CBF
[C#] Copy Code
satellite.SetAttitudeType(AgEVeAttitude.eAttitudeRealTime); 
IAgVeAttitudeRealTime realtime = satellite.Attitude as IAgVeAttitudeRealTime; 
 
for (int i = 0; i < cpfQuaternion.GetUpperBound(0); i++) 

    realtime.AddCBFQuaternion( 
        cpfQuaternion.GetValue(i, 0), 
        (double)cpfQuaternion.GetValue(i, 1), 
        (double)cpfQuaternion.GetValue(i, 2), 
        (double)cpfQuaternion.GetValue(i, 3), 
        (double)cpfQuaternion.GetValue(i, 4)); 

 

Configure real-time attitude
[C#] Copy Code
// set attitude type to real time 
satellite.SetAttitudeType(AgEVeAttitude.eAttitudeRealTime); 
IAgVeAttitudeRealTime realtime = satellite.Attitude as IAgVeAttitudeRealTime; 
 
// Set our Attitude Look Ahead method to Extrapolate 
realtime.LookAheadMethod = AgEVeLookAheadMethod.eExtrapolate; 
 
// Duration 
IAgVeDuration duration = realtime.Duration; 
duration.LookAhead = 1600.0
duration.LookBehind = 1600.0
 
// BlockFactor 
realtime.BlockFactor = 40
realtime.DataReference.SetProfileType(AgEVeProfile.eProfileInertiallyFixed); 
 

Add attitude data based on a time-ordered set of quaternions interpreted relative to CBF
[Visual Basic .NET] Copy Code
satellite.SetAttitudeType(AgEVeAttitude.eAttitudeRealTime)
Dim realtime As IAgVeAttitudeRealTime = TryCast(satellite.Attitude, IAgVeAttitudeRealTime)

Dim i As Integer = 0
While i <>
    realtime.AddCBFQuaternion(cpfQuaternion.GetValue(i, 0), DirectCast(cpfQuaternion.GetValue(i, 1), Double), DirectCast(cpfQuaternion.GetValue(i, 2), Double), DirectCast(cpfQuaternion.GetValue(i, 3), Double), DirectCast(cpfQuaternion.GetValue(i, 4), Double))
    System.Math.Max(System.Threading.Interlocked.Increment(i),i - 1)
End While

Configure real-time attitude
[Visual Basic .NET] Copy Code
' set attitude type to real time
satellite.SetAttitudeType(AgEVeAttitude.eAttitudeRealTime)
Dim realtime As IAgVeAttitudeRealTime = TryCast(satellite.Attitude, IAgVeAttitudeRealTime)

' Set our Attitude Look Ahead method to Extrapolate
realtime.LookAheadMethod = AgEVeLookAheadMethod.eExtrapolate

' Duration
Dim duration As IAgVeDuration = realtime.Duration
duration.LookAhead = 1600
duration.LookBehind = 1600

' BlockFactor
realtime.BlockFactor = 40
realtime.DataReference.SetProfileType(AgEVeProfile.eProfileInertiallyFixed)

CoClasses that Implement IAgVeAttitudeRealTime

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1