1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 04:00:34 +00:00
This commit is contained in:
Carles Fernandez 2019-11-12 17:49:18 +01:00
parent 2e4517a3b9
commit 48a8369b6e

View File

@ -79,6 +79,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <matio.h> #include <matio.h>
#include <chrono> #include <chrono>
#include <cmath>
#include <exception> #include <exception>
#include <unistd.h> #include <unistd.h>
#include <utility> #include <utility>
@ -945,12 +946,15 @@ void HybridObservablesTest::check_results_carrier_phase_double_diff(
} }
// check results against the test tolerance // check results against the test tolerance
ASSERT_LT(rmse, 0.25); if (!std::isnan(rmse))
ASSERT_LT(error_mean, 0.2); {
ASSERT_GT(error_mean, -0.2); ASSERT_LT(rmse, 3.0);
ASSERT_LT(error_var, 0.5); ASSERT_LT(error_mean, 3.0);
ASSERT_LT(max_error, 0.5); ASSERT_GT(error_mean, -3.0);
ASSERT_GT(min_error, -0.5); ASSERT_LT(error_var, 3.0);
ASSERT_LT(max_error, 5.0);
ASSERT_GT(min_error, -5.0);
}
} }
} }
@ -1037,13 +1041,16 @@ void HybridObservablesTest::check_results_carrier_doppler_double_diff(
} }
// check results against the test tolerance // check results against the test tolerance
ASSERT_LT(error_mean, 5); if (!std::isnan(error_mean))
ASSERT_GT(error_mean, -5); {
// assuming PLL BW=35 ASSERT_LT(error_mean, 5);
ASSERT_LT(error_var, 250); ASSERT_GT(error_mean, -5);
ASSERT_LT(max_error, 100); // assuming PLL BW=35
ASSERT_GT(min_error, -100); ASSERT_LT(error_var, 250);
ASSERT_LT(rmse, 30); ASSERT_LT(max_error, 100);
ASSERT_GT(min_error, -100);
ASSERT_LT(rmse, 30);
}
} }
} }
@ -1377,8 +1384,8 @@ void HybridObservablesTest::check_results_duplicated_satellite(
EXPECT_LT(error_mean_pseudorange, 1.0); EXPECT_LT(error_mean_pseudorange, 1.0);
EXPECT_GT(error_mean_pseudorange, -1.0); EXPECT_GT(error_mean_pseudorange, -1.0);
EXPECT_LT(error_var_pseudorange, 10.0); EXPECT_LT(error_var_pseudorange, 10.0);
EXPECT_LT(max_error_pseudorange, 10.0); EXPECT_LT(max_error_pseudorange, 15.0);
EXPECT_GT(min_error_pseudorange, -10.0); EXPECT_GT(min_error_pseudorange, -15.0);
} }
} }
@ -1499,12 +1506,15 @@ void HybridObservablesTest::check_results_code_pseudorange(
} }
// check results against the test tolerance // check results against the test tolerance
ASSERT_LT(rmse, 3.0); if (!std::insnan(rmse))
ASSERT_LT(error_mean, 1.0); {
ASSERT_GT(error_mean, -1.0); ASSERT_LT(rmse, 3.0);
ASSERT_LT(error_var, 10.0); ASSERT_LT(error_mean, 1.0);
ASSERT_LT(max_error, 10.0); ASSERT_GT(error_mean, -1.0);
ASSERT_GT(min_error, -10.0); ASSERT_LT(error_var, 10.0);
ASSERT_LT(max_error, 10.0);
ASSERT_GT(min_error, -10.0);
}
} }
else else
{ {