56 double dt, mjdnow, mjdaccel, lmjd,
cmjd;
57 int rflag,
iretn, mode;
70 mjdaccel = atof(argv[4]);
79 printf(
"Usage: agent_physics node [attitude_mode [dt [mjdaccel]]]\n");
97 if ((iretn=stat(fname,&fstat)) == 0 && (fdes=fopen(fname,
"r")) != NULL)
99 ibuf = (
char *)calloc(1,fstat.st_size+1);
100 fgets(ibuf,fstat.st_size,fdes);
116 mjdnow = 55593.416667827405;
static double cmjd
Definition: agent_monitor.cpp:121
Vector moi
Definition: jsondef.h:3448
vector< tlestruc > tle
Array of Two Line Elements.
Definition: jsondef.h:4259
In units for the SGP4 propogator (not NORAD TLE itself).
Definition: convertdef.h:921
ElapsedTime dt
Definition: agent_file3.cpp:183
rvector a
Acceleration.
Definition: convertdef.h:167
double utc
UTC of Position.
Definition: convertdef.h:161
int32_t json_parse(string jstring, cosmosstruc *cinfo)
Parse JSON using Name Space.
Definition: jsonlib.cpp:4799
char ibuf[1000]
Definition: razor_imu.cpp:43
rvector a
2nd derivative: Alpha - acceleration
Definition: convertdef.h:483
void simulate_hardware(cosmosstruc *cinfo, vector< locstruc > &locvec)
Simulate Hardware data - multiple.
Definition: physicslib.cpp:937
uint32_t pass
pass indicator: allows synchronization with other attitude and position values.
Definition: convertdef.h:170
int iretn
Definition: rw_test.cpp:37
void gauss_jackson_init_eci(gj_handle &gjh, uint32_t order, int32_t mode, double dt, double utc, cartpos ipos, qatt iatt, physicsstruc &physics, locstruc &loc)
Initialize Gauss-Jackson orbit using ECI state vector.
Definition: physicslib.cpp:2479
double utc
Master time for location, in Modified Julian Day.
Definition: convertdef.h:879
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
nodestruc node
Structure for summary information in node.
Definition: jsondef.h:4220
uint16_t running()
Check if we're supposed to be running.
Definition: agentclass.cpp:391
gj_handle gjh
Definition: agent_physics.cpp:43
rvector rv_unity(double scale)
Scaled y row vector.
Definition: vector.cpp:129
rvector s
Location.
Definition: convertdef.h:163
attstruc att
attstruc for this time.
Definition: convertdef.h:883
double utcoffset
MJD Offset between system UT and simulated UT.
Definition: jsondef.h:3590
static char fname[100]
Definition: geomag.cpp:89
uint16_t state
Operational state.
Definition: jsondef.h:3564
Definition: agentclass.h:139
qatt icrf
Definition: convertdef.h:830
tlestruc get_line(uint16_t index, vector< tlestruc > lines)
Get TLE from array of TLE's.
Definition: convertlib.cpp:3512
locstruc loc
Location structure.
Definition: jsondef.h:3596
int32_t pos_eci(locstruc *loc)
Set ECI position.
Definition: convertlib.cpp:258
vector< locstruc > gauss_jackson_propagate(gj_handle &gjh, physicsstruc &physics, locstruc &loc, double tomjd)
Definition: physicslib.cpp:2871
rvector rv_zero()
Zero row order vector.
Definition: vector.cpp:107
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
string get_nodedir(string node, bool create_flag)
Get Current Node Directory.
Definition: datalib.cpp:1572
posstruc pos
posstruc for this time.
Definition: convertdef.h:881
void hardware_init_eci(cosmosstruc *cinfo, locstruc &loc)
Initialize Hardware.
Definition: physicslib.cpp:877
quaternion s
0th derivative: Quaternion
Definition: convertdef.h:479
double col[3]
Definition: vector.h:55
char node[200]
Definition: agent_physics.cpp:51
cosmosstruc * cinfo
Definition: agentclass.h:346
cartpos eci
Definition: convertdef.h:737
quaternion q_eye()
Identity quaternion.
Definition: vector.cpp:1310
#define AGENT_ERROR_JSON_CREATE
Definition: cosmos-errno.h:105
int lines2eci(double utc, vector< tlestruc >lines, cartpos &eci)
Return position from TLE set.
Definition: convertlib.cpp:3155
physicsstruc phys
Definition: jsondef.h:3597
Agent * agent
Definition: agent_physics.cpp:44
rvector v
Velocity.
Definition: convertdef.h:165