Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions navdump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -631,8 +631,8 @@ try
etstamp();

auto latlonh = ecefToWGS84(nmm.op().x(), nmm.op().y(), nmm.op().z());
cout<<std::fixed<<"ECEF "<<nmm.op().x()<<", "<<nmm.op().y()<<", "<<nmm.op().z();
cout<<", WGS84 lon "<< 180*std::get<1>(latlonh)/M_PI
cout<<std::fixed<<"ECEF "<<nmm.op().x()<<" "<<nmm.op().y()<<" "<<nmm.op().z();
cout<<" WGS84 lon "<< 180*std::get<1>(latlonh)/M_PI
<<" lat "<< 180*std::get<0>(latlonh)/M_PI
<<" elev "<< std::get<2>(latlonh) << " acc "<<nmm.op().acc()<<" m "<<endl;
g_ourpos = Point(nmm.op().x(), nmm.op().y(), nmm.op().z());
Expand Down
4 changes: 2 additions & 2 deletions navmon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ std::string humanTime(time_t t)
}

char buffer[80];
strftime(buffer, sizeof(buffer), "%a, %d %b %Y %H:%M:%S %z", &tm);
strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S %z", &tm);
// strftime(buffer, sizeof(buffer), "%F %T ", &tm);
return buffer;
}
Expand All @@ -147,7 +147,7 @@ std::string humanTime(time_t t, uint32_t nanoseconds)
gmtime_r(&t, &tm);

char buffer[80];
std::string fmt = "%a, %d %b %Y %H:%M:"+fmt::sprintf("%07.04f", tm.tm_sec + nanoseconds/1000000000.0) +" %z";
std::string fmt = "%Y-%m-%d %H:%M:"+fmt::sprintf("%07.04f", tm.tm_sec + nanoseconds/1000000000.0) +" %z";

strftime(buffer, sizeof(buffer), fmt.c_str(), &tm);
return buffer;
Expand Down
2 changes: 1 addition & 1 deletion navparse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ std::string humanTime(int gnssid, int wn, int tow)
gmtime_r(&t, &tm);

char buffer[80];
strftime(buffer, sizeof(buffer), "%a, %d %b %Y %T %z", &tm);
strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S %z", &tm);
return buffer;
}
char getGNSSChar(int id)
Expand Down