97 if (
nodename.find(
":") != string::npos)
100 nodename = nodename.substr(0, nodename.find(
":"));
104 printf(
"Usage: get_contacts gsname[:minelev] [days [sat1 [sat2 [...]]]]\n");
117 std::vector <std::string>
nodes;
120 for (
size_t i=0;
i<nodes.size(); ++
i)
125 FILE *
fp = fopen(path.c_str(),
"r");
129 fscanf(fp,
"{\"node_type\":%d", &type);
136 ttrack.
name = nodes[
i];
147 track.push_back(ttrack);
158 for (
size_t i=0; i<
track.size(); ++
i)
Definition: agent_control.cpp:165
int i
Definition: rw_test.cpp:37
int iretn
Definition: rw_test.cpp:37
uint16_t type
Definition: jsondef.h:1294
string data_base_path(string node, string location, string agent, string filename)
Create data file path.
Definition: datalib.cpp:767
vector< tlestruc > tles
Definition: get_contacts_tle.cpp:45
vector< string > data_list_nodes()
Get list of Nodes, directly.
Definition: datalib.cpp:583
bool visible
Definition: fast_contacts.cpp:52
Definition: cosmos-defs.h:90
std::vector< cosmosstruc > nodes
Definition: agent_data-2-0.cpp:57
Definition: agentclass.h:139
string name
Definition: agent_control.cpp:170
bool peaked
Definition: fast_contacts.cpp:53
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
targetstruc target
Definition: agent_control.cpp:168
posstruc pos
posstruc for this time.
Definition: convertdef.h:881
locstruc loc
Definition: jsondef.h:1302
cartpos eci
Definition: convertdef.h:737
FILE * fp
Definition: rw_test.cpp:38
#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
#define RADOF(deg)
Radians of a Degree value.
Definition: math/constants.h:29