Skip to content
Snippets Groups Projects
Commit 207073a1 authored by Pep Martí Saumell's avatar Pep Martí Saumell
Browse files

[bug-fix] loag rinex navigation

parent 5ef9115f
No related branches found
No related tags found
2 merge requests!20new tag,!19new tag
......@@ -30,13 +30,11 @@ int main(int argc, char* argv[])
gtime_t t_start{ 0, 0 }; // no limit
gtime_t t_end{ 0, 0 }; // no limit
double dt = 0.0; // no limit
const char* opt = "-SYS=G"; // only GPS | GPS+GAL: "-SYS=G,L" | ALL: ""
const char* opt = ""; // only GPS | GPS+GAL: "-SYS=G,L" | ALL: ""
// RTKLIB trace
// char str_file[80];
// snprintf(str_file, sizeof str_file, "../src/examples/trace");
// traceopen(str_file);
// tracelevel(4);
// load observations from RINEX file
observations.loadFromRinex("../src/examples/sample_data.obs", t_start, t_end, dt, opt);
......
......@@ -120,7 +120,7 @@ void Navigation::clearNavigation()
void Navigation::loadFromRinex(const std::string& rnx_file, gtime_t t_start, gtime_t t_end, double dt, const char* opt)
{
auto stat = readrnxt(rnx_file.c_str(), 1, t_start, t_end, dt, opt, NULL, &nav_, NULL);
if (stat == 0)
if (stat == 1)
{
std::cout << "Navigation file loaded." << std::endl;
std::cout << "GPS satellites in navigation file: " << nav_.n << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment