72 c->
i = 51.6407 * (M_PI/180.0);
73 c->
O = 126.7653 * (M_PI/180.0);
74 c->
w = 163.1572 * (M_PI/180.0);
78 c->
n = pow( (c->
mu / pow(c->
a,3.0) ), (0.5) );
80 c->
T = ( 2.0 * M_PI ) / c->
n;
82 cout<<
"\tPeriod in seconds = "<<setprecision(numeric_limits<double>::digits10)<<c->
T<<endl;
83 cout<<
"\tRevolutions / day = "<<setprecision(numeric_limits<double>::digits10)<<86400.0/c->
T<<endl;
92 string request =
"are_you_out_there";
98 sss<<setprecision(numeric_limits<double>::digits10)<<t;
99 string time = sss.str();
106 if(response.size()) {
107 cout<<left<<setw(40)<<
"\t[daughter_01:allison]"<<setw(16)<<
"\033[1;32mFOUND\033[0m";
130 cout<<
"\n"<<response<<endl;
144 cout<<left<<setw(40)<<
"\t[daughter_01:allison]"<<
"\033[1;31mNOT FOUND\033[0m"<<endl;
149 if(response.size()) {
150 cout<<left<<setw(40)<<
"\t[daughter_02:becky]"<<setw(16)<<
"\033[1;32mFOUND\033[0m";
154 cout<<
"\n"<<response<<endl;
156 cout<<left<<setw(40)<<
"\t[daughter_02:becky]"<<
"\033[1;31mNOT FOUND\033[0m"<<endl;
161 if(response.size()) {
162 cout<<left<<setw(40)<<
"\t[daughter_03:cecilia]"<<setw(16)<<
"\033[1;32mFOUND\033[0m";
166 cout<<
"\n"<<response<<endl;
168 cout<<left<<setw(40)<<
"\t[daughter_03:cecilia]"<<
"\033[1;31mNOT FOUND\033[0m"<<endl;
173 if(response.size()) {
174 cout<<left<<setw(40)<<
"\t[daughter_04:deliliah]"<<setw(16)<<
"\033[1;32mFOUND\033[0m";
178 cout<<
"\n"<<response<<endl;
180 cout<<left<<setw(40)<<
"\t[daughter_04:deliliah]"<<
"\033[1;31mNOT FOUND\033[0m"<<endl;
int32_t send_request(beatstruc cbeat, string request, string &output, float waitsec=5.)
Send a request over AGENT.
Definition: agentclass.cpp:424
double O
Definition: jsondef.h:4336
string node_agent_name
Definition: mothership.cpp:45
string cosmos_error_string(int32_t cosmos_errno)
Definition: cosmos-errno.cpp:45
uint16_t running()
Check if we're supposed to be running.
Definition: agentclass.cpp:391
string node_name
Definition: mothership.cpp:43
int32_t add_request(string token, external_request_function function, string synopsis="", string description="")
Add internal request to Agent request list with description and synopsis.
Definition: agentclass.cpp:312
Definition: agentclass.h:139
double mu
Definition: jsondef.h:4350
double currentmjd(double offset)
Current UTC in Modified Julian Days.
Definition: timelib.cpp:65
int32_t last_error()
Definition: agentclass.cpp:414
double T
Definition: jsondef.h:4356
double w
Definition: jsondef.h:4338
beatstruc find_agent(string node, string agent, double waitsec=0.)
Find agent.
Definition: agentclass.cpp:559
cosmosstruc * cinfo
Definition: agentclass.h:346
double n
Definition: jsondef.h:4353
string agent_name
Definition: mothership.cpp:44
static Agent * agent
Definition: mothership.cpp:42
Definition: jsondef.h:4199
double a
Definition: jsondef.h:4320
double tau
Definition: jsondef.h:4340
double i
Definition: jsondef.h:4334
double e
Definition: jsondef.h:4322
int32_t are_you_out_there(string &request, string &response, Agent *cdata)
Definition: mothership.cpp:192