Description
Adds attitude data based on a time-ordered
set of quaternions interpreted relative to CBF.
Syntax
[Visual Basic .NET] |
Public Sub AddCBFQuaternion( _
ByVal Time As System.Object, _
ByVal Q1 As Double, _
ByVal Q2 As Double, _
ByVal Q3 As Double, _
ByVal Q4 As Double _
)
|
[C#] |
public void AddCBFQuaternion(
System.Object Time,
double Q1,
double Q2,
double Q3,
double Q4
);
|
[Managed C++] |
public: void AddCBFQuaternion(
VARIANT Time,
double Q1,
double Q2,
double Q3,
double Q4
);
|
[Java] |
public addCBFQuaternion(
Variant Time,
double Q1,
double Q2,
double Q3,
double Q4
);
|
[Unmanaged C++] |
public: HRESULT AddCBFQuaternion(
VARIANT Time,
double Q1,
double Q2,
double Q3,
double Q4
);
|
Parameters
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));
}
|
|
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 <
cpfQuaternion.GetUpperBound(0)
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
|
|
See Also