Initialize Gauss-Jackson orbit using Two Line Elements.
Initializes Gauss-Jackson structures using starting time and position from a Two Line Element set.
2370 utc -= (order/2.)*
dt/86400.;
2427 gjh.
step[
i].sloc.utc -=
dt / 86400.;
2429 gjh.
step[
i].sloc.pos.eci.pass++;
2432 gjh.
step[
i].sloc.att.lvlh = gjh.
step[i+1].sloc.att.lvlh;
2444 gjh.
step[
i].sloc.utc +=
dt / 86400.;
2446 gjh.
step[
i].sloc.pos.eci.pass++;
2449 gjh.
step[
i].sloc.att.lvlh = gjh.
step[i-1].sloc.att.lvlh;
double timestamp
Timestamp for last change to data.
Definition: jsondef.h:4202
vector< facestruc > faces
Vector of all faces in node.
Definition: jsondef.h:4229
vector< tlestruc > tle
Array of Two Line Elements.
Definition: jsondef.h:4259
ElapsedTime dt
Definition: agent_file3.cpp:183
int i
Definition: rw_test.cpp:37
rvector a
2nd derivative: Alpha - acceleration
Definition: convertdef.h:483
uint32_t pass
pass indicator: allows synchronization with other attitude and position values.
Definition: convertdef.h:170
Vector ftorque
Definition: jsondef.h:3437
double utc
Master time for location, in Modified Julian Day.
Definition: convertdef.h:879
int32_t att_lvlh2icrf(locstruc *loc)
Convert LVLH attitude to ICRF attitude.
Definition: convertlib.cpp:2035
const double DPI2
Double precision PI/2.
Definition: math/constants.h:18
qatt lvlh
Definition: convertdef.h:827
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
quaternion q_change_around_y(double angle)
Rotation quaternion for Y axis.
Definition: vector.cpp:1435
nodestruc node
Structure for summary information in node.
Definition: jsondef.h:4220
double utc
Definition: convertdef.h:477
int32_t pos_clear(locstruc *loc)
Initialize posstruc.
Definition: convertlib.cpp:77
rvector s
Location.
Definition: convertdef.h:163
quaternion q_drotate_between_rv(rvector from, rvector to)
Create rotation quaternion from 2 row vectors.
Definition: mathlib.cpp:81
attstruc att
attstruc for this time.
Definition: convertdef.h:883
locstruc gauss_jackson_converge_orbit(gj_handle &gjh, physicsstruc &physics)
Definition: physicslib.cpp:2761
void att_accel(physicsstruc &physics, locstruc &loc)
Attitude acceleration.
Definition: physicslib.cpp:1493
qatt icrf
Definition: convertdef.h:830
int32_t pos_eci(locstruc *loc)
Set ECI position.
Definition: convertlib.cpp:258
rvector rv_zero()
Zero row order vector.
Definition: vector.cpp:107
uint32_t order
Definition: physicsdef.h:109
double currentmjd(double offset)
Current UTC in Modified Julian Days.
Definition: timelib.cpp:65
posstruc pos
posstruc for this time.
Definition: convertdef.h:881
uint32_t order2
Definition: physicsdef.h:110
void hardware_init_eci(cosmosstruc *cinfo, locstruc &loc)
Initialize Hardware.
Definition: physicslib.cpp:877
quaternion s
0th derivative: Quaternion
Definition: convertdef.h:479
int32_t att_icrf2lvlh(locstruc *loc)
Definition: convertlib.cpp:1822
vector< piecestruc > pieces
Vector of all pieces in node.
Definition: jsondef.h:4232
double dt
Time step in seconds.
Definition: jsondef.h:3414
void gauss_jackson_converge_hardware(gj_handle &gjh, physicsstruc &physics)
Definition: physicslib.cpp:2862
cartpos eci
Definition: convertdef.h:737
vector< gjstruc > step
Definition: physicsdef.h:111
quaternion q_eye()
Identity quaternion.
Definition: vector.cpp:1310
int32_t mode
Definition: jsondef.h:3436
cartpos icrf
Definition: convertdef.h:736
double utc
Simulated starting time in MJD.
Definition: jsondef.h:3418
int lines2eci(double utc, vector< tlestruc >lines, cartpos &eci)
Return position from TLE set.
Definition: convertlib.cpp:3155
double dtj
Time step in Julian days.
Definition: jsondef.h:3416
physicsstruc phys
Definition: jsondef.h:3597
void gauss_jackson_setup(gj_handle &gjh, uint32_t order, double utc, double &dt)
Prepare for Gauss-Jackson integration.
Definition: physicslib.cpp:2219
int32_t pos_accel(physicsstruc &physics, locstruc &loc)
Position acceleration.
Definition: physicslib.cpp:1553