1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-18 21:23:02 +00:00

Fix header

This commit is contained in:
Carles Fernandez 2018-01-26 14:52:57 +01:00
parent 3865143909
commit 1b65cd9f8a

View File

@ -1,5 +1,5 @@
/*! /*!
* \file code_generation_test.cc * \file glonass_gnav_ephemeris_test.cc.cc
* \note Code added as part of GSoC 2017 program * \note Code added as part of GSoC 2017 program
* \author Damian Miralles, 2017. dmiralles2009(at)gmail.com * \author Damian Miralles, 2017. dmiralles2009(at)gmail.com
* \see <a href="http://russianspacesystems.ru/wp-content/uploads/2016/08/ICD_GLONASS_eng_v5.1.pdf">GLONASS ICD</a> * \see <a href="http://russianspacesystems.ru/wp-content/uploads/2016/08/ICD_GLONASS_eng_v5.1.pdf">GLONASS ICD</a>
@ -7,7 +7,7 @@
* *
* ------------------------------------------------------------------------- * -------------------------------------------------------------------------
* *
* Copyright (C) 2010-2015 (see AUTHORS file for a list of contributors) * Copyright (C) 2010-2017 (see AUTHORS file for a list of contributors)
* *
* GNSS-SDR is a software defined Global Navigation * GNSS-SDR is a software defined Global Navigation
* Satellite Systems receiver * Satellite Systems receiver
@ -32,7 +32,6 @@
#include <complex> #include <complex>
#include <ctime>
#include <iostream> #include <iostream>
#include "gnss_signal_processing.h" #include "gnss_signal_processing.h"
#include "glonass_gnav_ephemeris.h" #include "glonass_gnav_ephemeris.h"
@ -49,19 +48,19 @@ TEST(GlonassGnavEphemerisTest, ComputeGlonassTime)
d = d + d2; d = d + d2;
boost::gregorian::date expected_gdate; boost::gregorian::date expected_gdate;
boost::posix_time::time_duration expected_gtime; boost::posix_time::time_duration expected_gtime;
boost::posix_time::ptime gtime = gnav_eph.compute_GLONASS_time(7560); boost::posix_time::ptime gtime = gnav_eph.compute_GLONASS_time(7560);
expected_gdate = gtime.date(); expected_gdate = gtime.date();
expected_gtime = gtime.time_of_day(); expected_gtime = gtime.time_of_day();
// Perform assertions of decoded fields // Perform assertions of decoded fields
ASSERT_TRUE(expected_gdate.year() - d.year() < FLT_EPSILON ); ASSERT_TRUE(expected_gdate.year() - d.year() < FLT_EPSILON );
ASSERT_TRUE(expected_gdate.month() - d.month() < FLT_EPSILON ); ASSERT_TRUE(expected_gdate.month() - d.month() < FLT_EPSILON );
ASSERT_TRUE(expected_gdate.day() - d.day() < FLT_EPSILON ); ASSERT_TRUE(expected_gdate.day() - d.day() < FLT_EPSILON );
ASSERT_TRUE(expected_gtime.hours() - t.hours() < FLT_EPSILON ); ASSERT_TRUE(expected_gtime.hours() - t.hours() < FLT_EPSILON );
ASSERT_TRUE(expected_gtime.minutes() - t.minutes() < FLT_EPSILON ); ASSERT_TRUE(expected_gtime.minutes() - t.minutes() < FLT_EPSILON );
ASSERT_TRUE(expected_gtime.seconds() - t.seconds() < FLT_EPSILON ); ASSERT_TRUE(expected_gtime.seconds() - t.seconds() < FLT_EPSILON );
} }
/*! /*!
@ -82,11 +81,11 @@ TEST(GlonassGnavEphemerisTest, ConvertGlonassT2GpsT1)
double true_week = 1307; double true_week = 1307;
double true_tow = 480600+true_leap_sec; double true_tow = 480600+true_leap_sec;
gnav_eph.glot_to_gpst(tod + glo2utc, 0.0, 0.0, &week, &tow); gnav_eph.glot_to_gpst(tod + glo2utc, 0.0, 0.0, &week, &tow);
// Perform assertions of decoded fields // Perform assertions of decoded fields
ASSERT_TRUE(week - true_week < FLT_EPSILON ); ASSERT_TRUE(week - true_week < FLT_EPSILON );
ASSERT_TRUE(tow - true_tow < FLT_EPSILON ); ASSERT_TRUE(tow - true_tow < FLT_EPSILON );
} }
/*! /*!
@ -107,11 +106,11 @@ TEST(GlonassGnavEphemerisTest, ConvertGlonassT2GpsT2)
double true_week = 1915; double true_week = 1915;
double true_tow = 518400+true_leap_sec+tod; double true_tow = 518400+true_leap_sec+tod;
gnav_eph.glot_to_gpst(tod + glo2utc, 0.0, 0.0, &week, &tow); gnav_eph.glot_to_gpst(tod + glo2utc, 0.0, 0.0, &week, &tow);
// Perform assertions of decoded fields // Perform assertions of decoded fields
ASSERT_TRUE(week - true_week < FLT_EPSILON ); ASSERT_TRUE(week - true_week < FLT_EPSILON );
ASSERT_TRUE(tow - true_tow < FLT_EPSILON ); ASSERT_TRUE(tow - true_tow < FLT_EPSILON );
} }
/*! /*!
@ -132,9 +131,9 @@ TEST(GlonassGnavEphemerisTest, ConvertGlonassT2GpsT3)
double true_week = 1886; double true_week = 1886;
double true_tow = 259200+true_leap_sec+tod; double true_tow = 259200+true_leap_sec+tod;
gnav_eph.glot_to_gpst(tod + glo2utc, 0.0, 0.0, &week, &tow); gnav_eph.glot_to_gpst(tod + glo2utc, 0.0, 0.0, &week, &tow);
// Perform assertions of decoded fields // Perform assertions of decoded fields
ASSERT_TRUE(week - true_week < FLT_EPSILON ); ASSERT_TRUE(week - true_week < FLT_EPSILON );
ASSERT_TRUE(tow - true_tow < FLT_EPSILON ); ASSERT_TRUE(tow - true_tow < FLT_EPSILON );
} }