Skip to content

Commit

Permalink
Merged pull request 48.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamshapiro0 committed Mar 11, 2019
2 parents ee48da8 + e6baac0 commit 35691d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/lib/FileHandling/RINEX3/Rinex3NavData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,13 @@ namespace gpstk
// specify the time system based on satellite system
time.setTimeSystem(TimeSystem::Any);
if(satSys == "G") time.setTimeSystem(TimeSystem::GPS);
if(satSys == "R") time.setTimeSystem(TimeSystem::GLO);
if(satSys == "R") {
time.setTimeSystem(TimeSystem::GLO);

// RINEX reports GLONASS times as UTC, not GLONASS time (Moscow +
// 3h). Return a GLONASS timestamp rather than UTC.
time += 3 * 3600.0;
}
if(satSys == "E") time.setTimeSystem(TimeSystem::GAL);
if(satSys == "C") time.setTimeSystem(TimeSystem::BDT);
if(satSys == "J") time.setTimeSystem(TimeSystem::QZS);
Expand Down

0 comments on commit 35691d3

Please sign in to comment.