70 s << static_cast<int>(e);
132 template <
class NavClass>
141 TUDEF(
"RinexNavDataFactory",
"RinexNavDataFactory");
186 TUDEF(
"RinexNavDataFactory",
"loadIntoMap");
190 std::string f2name = gnsstk::getPathData() + gnsstk::getFileSep() +
202 TUCSM(
"convertToOffset");
204 double offsVal = 666;
223 TUCSM(
"loadIntoMap");
226 std::string f3name = gnsstk::getPathData() + gnsstk::getFileSep() +
227 "test_input_rinex3_76193040.14n";
233 std::string f4name = gnsstk::getPathData() + gnsstk::getFileSep() +
234 "test_input_rinex3_76193040.14n";
235 TUCATCH(f4.setTypeFilter({gnsstk::NavMessageType::Ephemeris}));
244 nmm4.begin()->first);
245 TUCSM(
"convertToOrbit/fillNavData");
246 verifyDataType<gnsstk::GPSLNavEph>(testFramework, nmm4);
247 TUCSM(
"loadIntoMap");
250 std::string f5name = gnsstk::getPathData() + gnsstk::getFileSep() +
251 "test_input_rinex3_76193040.14n";
252 TUCATCH(f5.setTypeFilter({gnsstk::NavMessageType::Health}));
261 nmm5.begin()->first);
262 TUCSM(
"convertToHealth/fillNavData");
263 verifyDataType<gnsstk::GPSLNavHealth>(testFramework, nmm5);
264 TUCSM(
"loadIntoMap");
267 std::string f6name = gnsstk::getPathData() + gnsstk::getFileSep() +
268 "test_input_rinex3_76193040.14n";
269 TUCATCH(f6.setTypeFilter({gnsstk::NavMessageType::Almanac}));
277 std::string f7name = gnsstk::getPathData() + gnsstk::getFileSep() +
278 "test_input_SP3a.sp3";
284 std::string f8name = gnsstk::getPathData() + gnsstk::getFileSep() +
285 "test_input_rinex3_nav_gal.20n";
301 unsigned ephICount = 0, ephFCount = 0, ephLCount = 0, heaICount = 0,
302 heaLCount = 0, ionoCount = 0, iscLCount = 0, iscICount = 0,
303 otherCount = 0, heaFCount = 0, iscFCount = 0, timeRCount = 0,
306 for (
auto& nmti : f8.
getData())
308 for (
auto& sati : nmti.second)
310 for (
auto& ti : sati.second)
367 TUASSERTFE( 5.440601449966e+03*5.440601449966e+03, ephI->
A);
448 TUASSERTFE( 5.440611391068e+03*5.440611391068e+03, ephF->
A);
520 TUASSERTFE( 5.153623668671e+03*5.153623668671e+03, ephL->
A);
590 ti.second.get())) !=
nullptr)
592 if (heaGalFCount == 1)
720 ti.second.get())) !=
nullptr)
779 std::string f9name = gnsstk::getPathData() + gnsstk::getFileSep() +
780 "test_input_rinex3_nav_BeiDou.14n";
788 unsigned eph2Count = 0, hea2Count = 0, isc2Count = 0;
791 for (
auto& nmti : f9.
getData())
793 for (
auto& sati : nmti.second)
795 for (
auto& ti : sati.second)
843 TUASSERTFE( 6.493480609894e+03*6.493480609894e+03, eph2->
A);
860 ti.second.get())) !=
nullptr)
885 ti.second.get())) !=
nullptr)
910 ti.second.get())) !=
nullptr)
962 std::string f10name = gnsstk::getPathData() + gnsstk::getFileSep() +
971 ephFCount = ephLCount = heaFCount = heaLCount = iscFCount = iscLCount = 0;
972 unsigned ionoLCount = 0;
975 for (
auto& nmti : f10.
getData())
977 for (
auto& sati : nmti.second)
979 for (
auto& ti : sati.second)
1102 ti.second.get())) !=
nullptr)
1107 ti.second.get())) !=
nullptr)
1109 if (timeRCount == 0)
1169 TUDEF(
"RinexNavDataFactory",
"decodeSISA");
1173 for (
unsigned index = 0; index < 50; index++)
1175 double accuracy = index / 100.0;
1179 for (
unsigned index = 50; index < 75; index++)
1181 double accuracy = 0.5 + ((index-50) * 0.02);
1185 for (
unsigned index = 75; index < 100; index++)
1187 double accuracy = 1.0 + ((index-75) * 0.04);
1191 for (
unsigned index = 100; index < 126; index++)
1193 double accuracy = 2.0 + ((index-100) * 0.16);
1205 TUDEF(
"RinexNavDataFactory",
"encodeSISA");
1206 for (
unsigned idx = 0; idx <= 125; idx++)
1223 TUDEF(
"RinexNavDataFactory",
"loadIntoMap(QZSS)");
1225 std::string fname = gnsstk::getPathData() + gnsstk::getFileSep() +
1226 "qzsssampl_U_20141330729_01D_RN.rnx";
1255 unsigned heaCount = 0, ephCount = 0, iscCount = 0, otherCount = 0;
1256 for (
const auto& nmti : nmm)
1258 for (
const auto& sati : nmti.second)
1260 for (
const auto& ti : sati.second)
1289 TUASSERTFE( 6.492895933151e+03 * 6.492895933151e+03, eph->
A);
1365 template <
class NavClass>
1370 for (
auto& nmti : nmm)
1372 for (
auto& sati : nmti.second)
1374 for (
auto& ti : sati.second)
1376 TUASSERT(
dynamic_cast<NavClass*
>(ti.second.get()) !=
nullptr);
1386 unsigned errorTotal = 0;
1394 std::cout <<
"Total Failures for " << __FILE__ <<
": " << errorTotal