37 rvector omega_a, omega_b, domega;
38 rmatrix s0_a2b, s1_a2b, s0_b2a, s1_b2a;
94 for (i=0; i<100000; i++)
100 omega_b =
rv_add(omega_b,domega);
108 omega_a =
rv_add(omega_a,domega);
109 printf(
"%15g %15g %15g %15g %15g %15g %15g %15g \r",(5e6-r_a.
col[0])/5e6,(5e6-r_a.
col[1])/5e6,(5e6-r_a.
col[2])/5e6,
length_rv(r_a)/rl,1.-omega_a.
col[0],1.-omega_a.
col[1],1.-omega_a.
col[2],
length_rv(omega_a)/sqrt(3.));
rvector rv_add(rvector a, rvector b)
Add two row vectors.
Definition: vector.cpp:299
3 element generic row vector
Definition: vector.h:53
rvector a
Acceleration.
Definition: convertdef.h:167
double utc
UTC of Position.
Definition: convertdef.h:161
int i
Definition: rw_test.cpp:37
rvector a
2nd derivative: Alpha - acceleration
Definition: convertdef.h:483
double length_rv(rvector v)
Length of row vector.
Definition: vector.cpp:748
cartpos geoc
Definition: convertdef.h:739
rvector rv_one()
Row vector of ones.
Definition: vector.cpp:151
rvector v
1st derivative: Omega - angular velocity
Definition: convertdef.h:481
rvector rv_smult(double a, rvector b)
Multiply row vector by scalar.
Definition: vector.cpp:266
int32_t pos_geoc2eci(locstruc *loc)
Convert GEOC to ECI.
Definition: convertlib.cpp:913
rvector s
Location.
Definition: convertdef.h:163
attstruc att
attstruc for this time.
Definition: convertdef.h:883
3x3 element generic matrix
Definition: matrix.h:41
int32_t pos_eci2geoc(locstruc *loc)
Convert ECI to GEOC.
Definition: convertlib.cpp:836
qatt icrf
Definition: convertdef.h:830
rvector rv_zero()
Zero row order vector.
Definition: vector.cpp:107
posstruc pos
posstruc for this time.
Definition: convertdef.h:881
quaternion s
0th derivative: Quaternion
Definition: convertdef.h:479
int32_t att_icrf2lvlh(locstruc *loc)
Definition: convertlib.cpp:1822
double col[3]
Definition: vector.h:55
cartpos eci
Definition: convertdef.h:737
quaternion q_eye()
Identity quaternion.
Definition: vector.cpp:1310
rvector rv_mmult(rmatrix m, rvector v)
Multiply rmatrix by rvector.
Definition: matrix.cpp:41
rvector rv_cross(rvector a, rvector b)
Take cross product of two row vectors.
Definition: vector.cpp:363
Definition: convertdef.h:876
rvector v
Velocity.
Definition: convertdef.h:165