Rename MATH_CONSTANTS.h to GNSS_MATH_CONSTANTS.h

The old name shadowed CUDA's math_constants.h when the source tree is
stored in a case-insensitive filesystem, breaking the build with
-DENABLE_CUDA=ON.
This commit is contained in:
Carles Fernandez committed 2026-11-17 22:13:40 +01:00
1 parent cf5f1d431f
commit 2ebd0aa341
53 files changed
+70 -64

No files matched your search

+6
View File
@@ -188,6 +188,12 @@ All notable changes to GNSS-SDR will be documented in this file.
- Added a CI job that builds the CUDA processing blocks and runs their unit
tests on a simulated GPU. Contributed by @saqibkh.
### Improvements in Portability:
- Fixed the CUDA build (`-DENABLE_CUDA=ON`) from a source tree stored in a
case-insensitive filesystem. The header `MATH_CONSTANTS.h`, which shadowed
CUDA's `math_constants.h`, has been renamed to `GNSS_MATH_CONSTANTS.h`.
### Improvements in Reliability:
- The SUPL client now verifies the server certificate and DNS name or IP address
+1 -1
View File
@@ -16,7 +16,7 @@
#include "rtklib_pvt.h"
#include "MATH_CONSTANTS.h" // for D2R
#include "GNSS_MATH_CONSTANTS.h" // for D2R
#include "SBAS_L1.h" // for SBAS PRN limits
#include "configuration_interface.h" // for ConfigurationInterface
#include "galileo_almanac.h" // for Galileo_Almanac
@@ -16,8 +16,8 @@
#include "rtklib_pvt_gs.h"
#include "Beidou_CNAV2.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "Galileo_CNAV.h"
#include "MATH_CONSTANTS.h"
#include "an_packet_printer.h"
#include "beidou_cnav1_ephemeris.h"
#include "beidou_cnav1_iono.h"
+1 -1
View File
@@ -16,7 +16,7 @@
*/
#include "pvt_solution.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <cmath>
#include <cstddef>
@@ -22,7 +22,7 @@
*/
#include "galileo_e5a_noncoherent_iq_acquisition_caf_cc.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <gnuradio/io_signature.h>
#include <volk/volk.h>
#include <volk_gnsssdr/volk_gnsssdr.h>
@@ -16,7 +16,7 @@
*/
#include "galileo_pcps_8ms_acquisition_cc.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <gnuradio/io_signature.h>
#include <volk/volk.h>
#include <volk_gnsssdr/volk_gnsssdr.h>
@@ -20,8 +20,8 @@
*/
#include "pcps_acquisition.h"
#include "GLONASS_L1_L2_CA.h" // for GLONASS_PRN
#include "MATH_CONSTANTS.h" // for TWO_PI
#include "GLONASS_L1_L2_CA.h" // for GLONASS_PRN
#include "GNSS_MATH_CONSTANTS.h" // for TWO_PI
#include "gnss_frequencies.h"
#include "gnss_sdr_create_directory.h"
#include "gnss_sdr_filesystem.h"
@@ -17,7 +17,7 @@
*/
#include "pcps_assisted_acquisition_cc.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "concurrent_map.h"
#include "gps_acq_assist.h"
#include <gnuradio/io_signature.h>
@@ -21,7 +21,7 @@
*/
#include "pcps_cccwsr_acquisition_cc.h"
#include "MATH_CONSTANTS.h" // TWO_PI
#include "GNSS_MATH_CONSTANTS.h" // TWO_PI
#include <gnuradio/io_signature.h>
#include <volk/volk.h>
#include <volk_gnsssdr/volk_gnsssdr.h>
@@ -35,7 +35,7 @@
*/
#include "pcps_opencl_acquisition_cc.h"
#include "MATH_CONSTANTS.h" // TWO_PI
#include "GNSS_MATH_CONSTANTS.h" // TWO_PI
#include <gnuradio/io_signature.h>
#include <volk/volk.h>
#include <volk_gnsssdr/volk_gnsssdr.h>
@@ -15,7 +15,7 @@
*/
#include "pcps_quicksync_acquisition_cc.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <gnuradio/io_signature.h>
#include <volk/volk.h>
#include <volk_gnsssdr/volk_gnsssdr.h>
@@ -35,7 +35,7 @@
*/
#include "pcps_tong_acquisition_cc.h"
#include "MATH_CONSTANTS.h" // for TWO_PI
#include "GNSS_MATH_CONSTANTS.h" // for TWO_PI
#include <gnuradio/io_signature.h>
#include <volk/volk.h>
#include <volk_gnsssdr/volk_gnsssdr.h>
@@ -20,12 +20,12 @@
*/
#include "fpga_acquisition.h"
#include "MATH_CONSTANTS.h" // for TWO_PI
#include <cmath> // for log2
#include <fcntl.h> // libraries used by the GIPO
#include <iostream> // for operator<<
#include <sys/mman.h> // libraries used by the GIPO
#include <unistd.h> // for write, close, read, ssize_t
#include "GNSS_MATH_CONSTANTS.h" // for TWO_PI
#include <cmath> // for log2
#include <fcntl.h> // libraries used by the GIPO
#include <iostream> // for operator<<
#include <sys/mman.h> // libraries used by the GIPO
#include <unistd.h> // for write, close, read, ssize_t
#include <utility>
#if USE_GLOG_AND_GFLAGS
+1 -1
View File
@@ -17,7 +17,7 @@
*/
#include "gnss_signal_replica.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <gnuradio/fxpt_nco.h>
#include <cmath>
#include <cstddef> // for size_t
+1 -1
View File
@@ -33,7 +33,7 @@
#ifndef GNSS_SDR_RTKLIB_H
#define GNSS_SDR_RTKLIB_H
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "gnss_frequencies.h"
#include "gnss_obs_codes.h"
#include <cctype>
@@ -17,7 +17,7 @@
#include "rtklib_conversions.h"
#include "Beidou_CNAV2.h"
#include "Beidou_DNAV.h" // for BEIDOU_DNAV_BDT2GPST_WEEK_NUM_OFFSET
#include "MATH_CONSTANTS.h" // for GNSS_PI, TWO_PI
#include "GNSS_MATH_CONSTANTS.h" // for GNSS_PI, TWO_PI
#include "beidou_cnav1_ephemeris.h" // for Beidou_Cnav1_Ephemeris
#include "beidou_dnav_almanac.h" // for Beidou_Dnav_Almanac
#include "beidou_dnav_ephemeris.h" // for Beidou_Dnav_Ephemeris
@@ -16,7 +16,7 @@
*/
#include "hybrid_observables_gs.h"
#include "MATH_CONSTANTS.h" // for SPEED_OF_LIGHT_M_S, TWO_PI
#include "GNSS_MATH_CONSTANTS.h" // for SPEED_OF_LIGHT_M_S, TWO_PI
#include "gnss_circular_deque.h"
#include "gnss_frequencies.h"
#include "gnss_satellite.h"
@@ -19,7 +19,7 @@
#include "Beidou_B1C_codes.h"
#include "Beidou_CNAV1.h"
#include "Beidou_DNAV.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "beidou_cnav1_ephemeris.h"
#include "beidou_cnav1_iono.h"
#include "beidou_cnav1_utc_model.h"
@@ -17,7 +17,7 @@
#include "beidou_b2a_telemetry_decoder_gs.h"
#include "Beidou_B2a.h"
#include "Beidou_DNAV.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "beidou_cnav1_ephemeris.h"
#include "display.h"
#include "gnss_satellite.h"
@@ -19,7 +19,7 @@
#include "glonass_gnav_telemetry_decoder_gs.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "display.h"
#include "dump_logger_helper.h"
#include "glonass_gnav_almanac.h"
@@ -16,8 +16,8 @@
*/
#include "gps_l1c_telemetry_decoder_gs.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "GPS_L1C.h"
#include "MATH_CONSTANTS.h"
#include "deterministic_clock.h"
#include "display.h" // for colours in terminal: TEXT_RED, TEXT_RESET
#include "dump_logger_helper.h"
@@ -28,6 +28,7 @@
#include "Beidou_B2a.h"
#include "Beidou_B3I.h"
#include "GLONASS_L1_L2_CA.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "GPS_L1C.h"
#include "GPS_L1_CA.h"
#include "GPS_L2C.h"
@@ -36,7 +37,6 @@
#include "Galileo_E5a.h"
#include "Galileo_E5b.h"
#include "Galileo_E6.h"
#include "MATH_CONSTANTS.h"
#include "SBAS_L1.h"
#include "beidou_b1c_signal_replica.h"
#include "beidou_b1i_signal_replica.h"
@@ -21,13 +21,13 @@
*/
#include "dll_pll_veml_tracking_fpga.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "GPS_L1_CA.h"
#include "GPS_L2C.h"
#include "GPS_L5.h"
#include "Galileo_E1.h"
#include "Galileo_E5a.h"
#include "Galileo_E6.h"
#include "MATH_CONSTANTS.h"
#include "fpga_multicorrelator.h"
#include "galileo_e6_signal_replica.h"
#include "gnss_satellite.h"
@@ -22,13 +22,13 @@
#include "Beidou_B1I.h"
#include "Beidou_B2a.h"
#include "Beidou_B3I.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "GPS_L1_CA.h"
#include "GPS_L2C.h"
#include "GPS_L5.h"
#include "Galileo_E1.h"
#include "Galileo_E5a.h"
#include "Galileo_E5b.h"
#include "MATH_CONSTANTS.h"
#include "beidou_b1i_signal_replica.h"
#include "beidou_b2a_signal_replica.h"
#include "beidou_b3i_signal_replica.h"
@@ -19,7 +19,7 @@
*/
#include "tracking_discriminators.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <gnuradio/math.h>
// All the outputs are in RADIANS
+1 -1
View File
@@ -18,8 +18,8 @@
*/
#include "gnss_sdr_supl_client.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "GPS_L1_CA.h"
#include "MATH_CONSTANTS.h"
#include "gnss_satellite.h"
#include <boost/archive/xml_iarchive.hpp>
#include <boost/archive/xml_oarchive.hpp>
+4 -4
View File
@@ -16,10 +16,10 @@
#include "satellite_visibility.h"
#include "Beidou_CNAV2.h"
#include "GLONASS_L1_L2_CA.h" // for GLONASS_PRN
#include "MATH_CONSTANTS.h" // for D2R, SPEED_OF_LIGHT_M_S
#include "agnss_ref_location.h" // for parse_agnss_ref_location
#include "agnss_ref_time.h" // for parse_agnss_ref_utc_time
#include "GLONASS_L1_L2_CA.h" // for GLONASS_PRN
#include "GNSS_MATH_CONSTANTS.h" // for D2R, SPEED_OF_LIGHT_M_S
#include "agnss_ref_location.h" // for parse_agnss_ref_location
#include "agnss_ref_time.h" // for parse_agnss_ref_utc_time
#include "configuration_interface.h"
#include "geofunctions.h"
#include "gnss_frequencies.h" // for SIGNAL_FREQ_MAP
+1 -1
View File
@@ -17,7 +17,7 @@
#ifndef GNSS_SDR_BEIDOU_CNAV1_H
#define GNSS_SDR_BEIDOU_CNAV1_H
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <cstdint>
/** \addtogroup Core
+1 -1
View File
@@ -18,7 +18,7 @@
#ifndef GNSS_SDR_BEIDOU_DNAV_H
#define GNSS_SDR_BEIDOU_DNAV_H
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <cstddef>
#include <cstdint>
#include <utility>
+1 -1
View File
@@ -127,7 +127,7 @@ set(SYSTEM_PARAMETERS_HEADERS
Beidou_B3I.h
Beidou_CNAV2.h
Beidou_DNAV.h
MATH_CONSTANTS.h
GNSS_MATH_CONSTANTS.h
reed_solomon.h
galileo_has_page.h
Galileo_OSNMA.h
@@ -1,5 +1,5 @@
/*!
* \file MATH_CONSTANTS.h
* \file GNSS_MATH_CONSTANTS.h
* \brief Defines useful mathematical constants and their scaled versions
* \author Javier Arribas, 2013. jarribas(at)cttc.es
*
@@ -14,8 +14,8 @@
* -----------------------------------------------------------------------------
*/
#ifndef GNSS_SDR_MATH_CONSTANTS_H
#define GNSS_SDR_MATH_CONSTANTS_H
#ifndef GNSS_SDR_GNSS_MATH_CONSTANTS_H
#define GNSS_SDR_GNSS_MATH_CONSTANTS_H
/** \addtogroup Core
* \{ */
@@ -130,4 +130,4 @@ constexpr double AU = 149597870691.0; //!< 1 Astronomical Unit AU (m) distance
/** \} */
/** \} */
#endif // GNSS_SDR_MATH_CONSTANTS_H
#endif // GNSS_SDR_GNSS_MATH_CONSTANTS_H
+1 -1
View File
@@ -18,7 +18,7 @@
#ifndef GNSS_SDR_GPS_CNAV_H
#define GNSS_SDR_GPS_CNAV_H
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <cstdint>
#include <utility> // std::pair
#include <vector>
+1 -1
View File
@@ -20,7 +20,7 @@
#ifndef GNSS_SDR_GPS_CNAV2_H
#define GNSS_SDR_GPS_CNAV2_H
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <cstdint>
#include <utility> // std::pair
#include <vector>
+1 -1
View File
@@ -18,7 +18,7 @@
#ifndef GNSS_SDR_GPS_L1_CA_H
#define GNSS_SDR_GPS_L1_CA_H
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "gnss_frequencies.h"
#include <cstdint>
#include <utility> // std::pair
+1 -1
View File
@@ -19,7 +19,7 @@
#ifndef GNSS_SDR_GALILEO_E1_H
#define GNSS_SDR_GALILEO_E1_H
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "gnss_frequencies.h"
#include <cstddef> // for size_t
#include <cstdint>
+1 -1
View File
@@ -17,7 +17,7 @@
#ifndef GNSS_SDR_GALILEO_E5A_H
#define GNSS_SDR_GALILEO_E5A_H
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "gnss_frequencies.h"
#include <cstddef> // for size_t
#include <cstdint>
+1 -1
View File
@@ -18,7 +18,7 @@
#ifndef GNSS_SDR_GALILEO_E5B_H
#define GNSS_SDR_GALILEO_E5B_H
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "gnss_frequencies.h"
#include <cstddef>
#include <cstdint>
+1 -1
View File
@@ -18,7 +18,7 @@
#ifndef GNSS_SDR_GALILEO_FNAV_H
#define GNSS_SDR_GALILEO_FNAV_H
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <cstdint>
#include <utility>
#include <vector>
+1 -1
View File
@@ -18,7 +18,7 @@
#ifndef GNSS_SDR_GALILEO_INAV_H
#define GNSS_SDR_GALILEO_INAV_H
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <cstddef>
#include <cstdint>
#include <utility>
+1 -1
View File
@@ -14,7 +14,7 @@
* -----------------------------------------------------------------------------
*/
#include "beidou_bdgim.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <cmath>
namespace
@@ -18,7 +18,7 @@
#include "Beidou_B2a.h"
#include "Beidou_CNAV1.h"
#include "Beidou_CNAV2.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "beidou_cnav2_ldpc.h"
#include <algorithm>
#include <cmath>
@@ -15,7 +15,7 @@
*/
#include "galileo_reduced_ced.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include <cmath>
@@ -17,7 +17,7 @@
*/
#include "glonass_gnav_navigation_message.h"
#include "MATH_CONSTANTS.h" // for TWO_N20, TWO_N30, TWO_N14, TWO_N15, TWO_N18
#include "GNSS_MATH_CONSTANTS.h" // for TWO_N20, TWO_N30, TWO_N14, TWO_N15, TWO_N18
#include "display.h"
#include "gnss_satellite.h"
#include <boost/date_time/gregorian/gregorian.hpp>
+1 -1
View File
@@ -15,7 +15,7 @@
*/
#include "gnss_almanac.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "gnss_frequencies.h"
#include <algorithm>
#include <cmath>
+1 -1
View File
@@ -16,7 +16,7 @@
*/
#include "gnss_ephemeris.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "gnss_frequencies.h"
#include <algorithm>
#include <cmath>
+1 -1
View File
@@ -18,7 +18,7 @@
* -----------------------------------------------------------------------------
*/
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "acquisition_msg_rx.h"
#include "concurrent_map.h"
#include "concurrent_queue.h"
@@ -14,8 +14,8 @@
* -----------------------------------------------------------------------------
*/
#include "GNSS_MATH_CONSTANTS.h"
#include "GPS_L1_CA.h"
#include "MATH_CONSTANTS.h"
#include "cuda_pcps_engine.h"
#include "gnss_sdr_fft.h"
#include "gps_sdr_signal_replica.h"
@@ -14,8 +14,8 @@
* -----------------------------------------------------------------------------
*/
#include "GNSS_MATH_CONSTANTS.h"
#include "GPS_L1C.h"
#include "MATH_CONSTANTS.h"
#include "concurrent_queue.h"
#include "gnss_block_interface.h"
#include "gnss_synchro.h"
@@ -16,7 +16,7 @@
*/
#include "Beidou_DNAV.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "beidou_dnav_telemetry_decoder_gs.h"
#include "gnss_satellite.h"
#include "gnss_synchro.h"
@@ -16,7 +16,7 @@
*/
#include "GLONASS_L1_L2_CA.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "glonass_gnav_telemetry_decoder_gs.h"
#include "gnss_satellite.h"
#include "gnss_synchro.h"
@@ -14,7 +14,7 @@
* -----------------------------------------------------------------------------
*/
#include "Beidou_CNAV1.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "gnss_frequencies.h"
#include "gnss_obs_codes.h"
#include "gnss_synchro.h"
@@ -15,7 +15,7 @@
*/
#include "Beidou_CNAV1.h"
#include "Beidou_CNAV2.h"
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "beidou_cnav1_ephemeris.h"
#include "gnss_frequencies.h"
#include "gnss_obs_codes.h"
@@ -13,7 +13,7 @@
*
* -----------------------------------------------------------------------------
*/
#include "MATH_CONSTANTS.h"
#include "GNSS_MATH_CONSTANTS.h"
#include "beidou_bdgim.h"
#include "gnss_frequencies.h"
#include <gtest/gtest.h>