44 vector<tlestruc>lines;
69 loc.
utc = atof(argv[2]);
72 string fname = argv[1];
73 if (fname.find(
".tle") != string::npos)
76 state->
Init(Physics::Structure::Type::U6, Physics::Propagator::Type::PositionGaussJackson, Physics::Propagator::Type::AttitudeLVLH, Physics::Propagator::Type::Thermal, Physics::Propagator::Type::Electrical, &loc, &phys, dp/10., lines);
81 loc.
utc = atof(argv[1]);
90 state->
Init(Physics::Structure::Type::U6, Physics::Propagator::Type::PositionGaussJackson, Physics::Propagator::Type::AttitudeLVLH, Physics::Propagator::Type::Thermal, Physics::Propagator::Type::Electrical, &loc, &phys, dp/10., lines);
95 for (
double second=0.; second<endp; ++second)
97 state->
Increment(initialutc + second / 86400.);
102 if (second == dp*static_cast<int32_t>(second/(dp)))
104 printf(
"%s %10f %10f %10f %7f %7f %7f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f %.1f\n" Gauss-Jackson integration handle.
Definition: physicsdef.h:98
float radiation
Definition: jsondef.h:3428
rvector a
Acceleration.
Definition: convertdef.h:167
double utc
UTC of Position.
Definition: convertdef.h:161
uint32_t pass
pass indicator: allows synchronization with other attitude and position values.
Definition: convertdef.h:170
int32_t Increment(double nextutc)
Definition: physicsclass.cpp:423
int iretn
Definition: rw_test.cpp:37
double utc
Master time for location, in Modified Julian Day.
Definition: convertdef.h:879
Physics Simulation Structure.
Definition: jsondef.h:3411
float temp
Definition: jsondef.h:3426
static double initialutc
Definition: physicslib.cpp:43
rvector s
Location.
Definition: convertdef.h:163
int32_t loc_clear(locstruc *loc)
Initialize locstruc.
Definition: convertlib.cpp:58
static char fname[100]
Definition: geomag.cpp:89
#define DEGOF(rad)
Degrees of a Radian value.
Definition: math/constants.h:33
double h
Height in meters.
Definition: vector.h:229
gj_handle gjh
Definition: agent_node.cpp:80
double lon
Longitude in radians.
Definition: vector.h:227
int32_t Init(Propagator *posprop, Propagator *attprop, Propagator *thermprop, Propagator *elecprop)
Definition: physicsclass.cpp:256
int32_t load_lines(string fname, vector< tlestruc > &lines)
Load TLE from file. TODO!!! Rename Function to loadTle and create new class for dealing with TLEs...
Definition: convertlib.cpp:3612
double currentmjd(double offset)
Current UTC in Modified Julian Days.
Definition: timelib.cpp:65
posstruc pos
posstruc for this time.
Definition: convertdef.h:881
gvector s
Position vector.
Definition: convertdef.h:263
double lat
Latitude in radians.
Definition: vector.h:225
double col[3]
Definition: vector.h:55
cartpos eci
Definition: convertdef.h:737
Definition: physicsclass.h:296
geoidpos geod
Definition: convertdef.h:741
string mjd2iso8601(double mjd)
Definition: timelib.cpp:1316
gvector v
Velocity vector.
Definition: convertdef.h:265
Definition: convertdef.h:876
rvector v
Velocity.
Definition: convertdef.h:165