Changeset 10564 in ntrip
- Timestamp:
- Oct 9, 2024, 5:30:29 PM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncgetthread.cpp
r10545 r10564 870 870 str << " " << rnxTypes[iType]; 871 871 } 872 emit(newMessage(_staID + ": Observation Types: " + msg.toLatin1(), 873 true)); 872 emit(newMessage(_staID + ": Observation Types: " + msg.toLatin1(), true)); 874 873 } 875 874 } … … 941 940 } 942 941 } 943 // Service CRS 944 // ----------- 945 for (int ii = 0; ii < decoder()->_serviceCrs.size(); ii++) { 946 QString servicecrsname = QString(": Service CRS Name: %1 ").arg(decoder()->_serviceCrs[ii]._name); 947 QString coordinateEpoch = QString(": Service CRS Coordinate Epoch: %1 ").arg(decoder()->_serviceCrs[ii]._coordinateEpoch); 948 //QString ce = QString(": CE: %1 ").arg(decoder()->_serviceCrs[ii]._CE); 949 emit(newMessage(_staID + servicecrsname.toLatin1(), true)); 950 emit(newMessage(_staID + coordinateEpoch.toLatin1(), true)); 951 //emit(newMessage(_staID + ce.toLatin1(), true)); 952 } 953 954 // RTCM CRS 955 // ----------- 956 for (int ii = 0; ii < decoder()->_rtcmCrs.size(); ii++) { 957 QString rtcmcrsname = QString(": RTCM CRS Name: %1 ").arg(decoder()->_rtcmCrs[ii]._name); 958 QString anchor = QString(": RTCM CRS Anchor: %1 ").arg(decoder()->_rtcmCrs[ii]._anchor); 959 QString platenumber = QString(": RTCM CRS Plate Number: %1 ").arg(decoder()->_rtcmCrs[ii]._plateNumber); 960 emit(newMessage(_staID + rtcmcrsname.toLatin1(), true)); 961 emit(newMessage(_staID + anchor.toLatin1(), true)); 962 emit(newMessage(_staID + platenumber.toLatin1(), true)); 963 for (int i = 0; i<decoder()->_rtcmCrs[ii]._databaseLinks.size(); i++) { 964 QString dblink = QString(": Database Link: %1 ").arg(decoder()->_rtcmCrs[ii]._databaseLinks[i]); 965 emit(newMessage(_staID + dblink.toLatin1(), true)); 966 } 967 } 968 969 // Helmert Parameters 970 //------------------- 971 for (int ii = 0; ii < decoder()->_helmertPar.size(); ii++) { 972 t_helmertPar& helmertPar = decoder()->_helmertPar[ii]; 973 bncTime t; t.setmjd(0, helmertPar._mjd); QString dateStr = QString::fromStdString(t.datestr()); 974 QString sourcename = QString(": MT1301 Source Name: %1 ").arg(helmertPar._sourceName); 975 QString targetname = QString(": MT1301 Target Name: %1 ").arg(helmertPar._targetName); 976 QString sysidentnum = QString(": MT1301 Sys Ident Num: %1 ").arg(helmertPar._sysIdentNum); 977 QString trafomessageind = QString(": MT1301 Trafo Ident Num: %1 ").arg(helmertPar.IndtoString()); 978 QString epoch = QString(": MT1301 t0: MJD %1 (%2) ").arg(helmertPar._mjd).arg(dateStr); 979 QString partrans = QString(": MT1301 Helmert Par Trans: dx = %1, dy = %2, dz = %3, dxr = %4, dyr = %5, dzr = %6") 980 .arg(helmertPar._dx).arg(helmertPar._dy).arg(helmertPar._dz) 981 .arg(helmertPar._dxr).arg(helmertPar._dyr).arg(helmertPar._dzr); 982 QString parrot = QString(": MT1301 Helmert Par Rot: ox = %1, oy = %2, oz = %3, oxr = %4, oyr = %5, ozr = %6") 983 .arg(helmertPar._ox).arg(helmertPar._oy).arg(helmertPar._oz) 984 .arg(helmertPar._oxr).arg(helmertPar._oyr).arg(helmertPar._ozr); 985 QString parscale = QString(": MT1301 Helmert Par Scale: sc = %1, scr = %2").arg(helmertPar._sc).arg(helmertPar._scr); 986 emit(newMessage(_staID + sourcename.toLatin1(), true)); 987 emit(newMessage(_staID + targetname.toLatin1(), true)); 988 emit(newMessage(_staID + sysidentnum.toLatin1(), true)); 989 emit(newMessage(_staID + trafomessageind.toLatin1(), true)); 990 emit(newMessage(_staID + epoch.toLatin1(), true)); 991 emit(newMessage(_staID + partrans.toLatin1(), true)); 992 emit(newMessage(_staID + parrot.toLatin1(), true)); 993 emit(newMessage(_staID + parscale.toLatin1(), true)); 942 if (fmod(decoder()->corrGPSEpochTime(), 60.0) == 0.0) { 943 // Service CRS 944 // ----------- 945 for (int ii = 0; ii < decoder()->_serviceCrs.size(); ii++) { 946 QString servicecrsname = QString(": Service CRS Name: %1 ").arg(decoder()->_serviceCrs[ii]._name); 947 QString coordinateEpoch = QString(": Service CRS Coordinate Epoch: %1 ").arg(decoder()->_serviceCrs[ii]._coordinateEpoch); 948 //QString ce = QString(": CE: %1 ").arg(decoder()->_serviceCrs[ii]._CE); 949 emit(newMessage(_staID + servicecrsname.toLatin1(), true)); 950 emit(newMessage(_staID + coordinateEpoch.toLatin1(), true)); 951 //emit(newMessage(_staID + ce.toLatin1(), true)); 952 } 953 954 // RTCM CRS 955 // ----------- 956 for (int ii = 0; ii < decoder()->_rtcmCrs.size(); ii++) { 957 QString rtcmcrsname = QString(": RTCM CRS Name: %1 ").arg(decoder()->_rtcmCrs[ii]._name); 958 QString anchor = QString(": RTCM CRS Anchor: %1 ").arg(decoder()->_rtcmCrs[ii]._anchor); 959 QString platenumber = QString(": RTCM CRS Plate Number: %1 ").arg(decoder()->_rtcmCrs[ii]._plateNumber); 960 emit(newMessage(_staID + rtcmcrsname.toLatin1(), true)); 961 emit(newMessage(_staID + anchor.toLatin1(), true)); 962 emit(newMessage(_staID + platenumber.toLatin1(), true)); 963 for (int i = 0; i<decoder()->_rtcmCrs[ii]._databaseLinks.size(); i++) { 964 QString dblink = QString(": Database Link: %1 ").arg(decoder()->_rtcmCrs[ii]._databaseLinks[i]); 965 emit(newMessage(_staID + dblink.toLatin1(), true)); 966 } 967 } 968 969 // Helmert Parameters 970 //------------------- 971 for (int ii = 0; ii < decoder()->_helmertPar.size(); ii++) { 972 t_helmertPar& helmertPar = decoder()->_helmertPar[ii]; 973 bncTime t; t.setmjd(0, helmertPar._mjd); QString dateStr = QString::fromStdString(t.datestr()); 974 QString sourcename = QString(": MT1301 Source Name: %1 ").arg(helmertPar._sourceName); 975 QString targetname = QString(": MT1301 Target Name: %1 ").arg(helmertPar._targetName); 976 QString sysidentnum = QString(": MT1301 Sys Ident Num: %1 ").arg(helmertPar._sysIdentNum); 977 QString trafomessageind = QString(": MT1301 Trafo Ident Num: %1 ").arg(helmertPar.IndtoString()); 978 QString epoch = QString(": MT1301 t0: MJD %1 (%2) ").arg(helmertPar._mjd).arg(dateStr); 979 QString partrans = QString(": MT1301 Helmert Par Trans: dx = %1, dy = %2, dz = %3, dxr = %4, dyr = %5, dzr = %6") 980 .arg(helmertPar._dx).arg(helmertPar._dy).arg(helmertPar._dz) 981 .arg(helmertPar._dxr).arg(helmertPar._dyr).arg(helmertPar._dzr); 982 QString parrot = QString(": MT1301 Helmert Par Rot: ox = %1, oy = %2, oz = %3, oxr = %4, oyr = %5, ozr = %6") 983 .arg(helmertPar._ox).arg(helmertPar._oy).arg(helmertPar._oz) 984 .arg(helmertPar._oxr).arg(helmertPar._oyr).arg(helmertPar._ozr); 985 QString parscale = QString(": MT1301 Helmert Par Scale: sc = %1, scr = %2").arg(helmertPar._sc).arg(helmertPar._scr); 986 emit(newMessage(_staID + sourcename.toLatin1(), true)); 987 emit(newMessage(_staID + targetname.toLatin1(), true)); 988 emit(newMessage(_staID + sysidentnum.toLatin1(), true)); 989 emit(newMessage(_staID + trafomessageind.toLatin1(), true)); 990 emit(newMessage(_staID + epoch.toLatin1(), true)); 991 emit(newMessage(_staID + partrans.toLatin1(), true)); 992 emit(newMessage(_staID + parrot.toLatin1(), true)); 993 emit(newMessage(_staID + parscale.toLatin1(), true)); 994 } 994 995 } 995 996 }
Note:
See TracChangeset
for help on using the changeset viewer.