Skip to content
Snippets Groups Projects

Resolve "navigation_tests"

Merged Pep Martí Saumell requested to merge 7-navigation_tests into devel
Files
2
+ 4
3
@@ -4,13 +4,12 @@
using namespace GnssUtils;
std::string rnx_file = std::string(_GNSS_UTILS_ROOT_DIR) + "/test/data/sample_data.nav";
nav_t nav;
const gtime_t t_start{ 0, 0 }; // no limit
const gtime_t t_end{ 0, 0 }; // no limit
const double dt = 0.0; // no limit
const char* opt = ""; // only GPS | GPS+GAL: "-SYS=G,L" | ALL: ""
void loadRinex()
void loadRinex(nav_t& nav)
{
int stat = readrnxt(rnx_file.c_str(), 1, t_start, t_end, dt, opt, NULL, &nav, NULL);
@@ -20,12 +19,14 @@ void loadRinex()
TEST(NavigationTests, setgetNavigation)
{
loadRinex();
nav_t nav;
loadRinex(nav);
Navigation navigation;
navigation.setNavigation(nav);
ASSERT_TRUE(navigation.getNavigation() == nav);
Navigation::freeNavArrays(nav);
}
int main(int argc, char** argv)
Loading