- Timestamp:
- Jul 22, 2015, 10:45:16 AM (9 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnctime.cpp
r6812 r7138 37 37 int deltad; 38 38 int dow = 0; 39 while ( gpssec >= 86400 ) { 40 gpssec-=86400; 41 dow++; 42 } 43 while ( gpssec < 0 ) { 44 gpssec+=86400; 45 dow--; 46 } 47 deltad = gpsw*7 + dow; 48 _mjd = 44244 + deltad; 49 _sec = gpssec; 50 return *this; 51 } 52 53 54 // 55 ////////////////////////////////////////////////////////////////////////////// 56 bncTime& bncTime::setBDS(int gpsw, double gpssec) { 57 int deltad; 58 int dow = 0; 59 gpssec += 14.0; 60 gpsw += 1356.0; 39 61 while ( gpssec >= 86400 ) { 40 62 gpssec-=86400; -
trunk/BNC/src/bnctime.h
r6980 r7138 58 58 */ 59 59 bncTime &setBDS (int year, int month, int day, int hour, int min, double sec); 60 bncTime &setBDS(int gpsw, double gpssec); 60 61 61 62 void reset() {_mjd = 0; _sec = 0;} -
trunk/BNC/src/ephemeris.cpp
r7133 r7138 1359 1359 } 1360 1360 1361 _TOE.setBDS(int(_TOEweek), _TOEsec); 1362 1361 1363 // remark: actually should be computed from second_tot 1362 1364 // but it seems to be unreliable in RINEX files … … 1444 1446 double yp = r*sin(u); 1445 1447 double toesec = (_TOE.gpssec() - 14.0); 1446 1447 1448 double sinom = 0; 1448 1449 double cosom = 0;
Note:
See TracChangeset
for help on using the changeset viewer.