mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	Use nullptr
This commit is contained in:
		| @@ -117,8 +117,8 @@ galileo_e5a_noncoherentIQ_acquisition_caf_cc::galileo_e5a_noncoherentIQ_acquisit | ||||
|         } | ||||
|     else | ||||
|         { | ||||
|             d_fft_code_Q_A = 0; | ||||
|             d_magnitudeQA = 0; | ||||
|             d_fft_code_Q_A = nullptr; | ||||
|             d_magnitudeQA = nullptr; | ||||
|         } | ||||
|     // IF COHERENT INTEGRATION TIME > 1 | ||||
|     if (d_sampled_ms > 1) | ||||
| @@ -132,16 +132,16 @@ galileo_e5a_noncoherentIQ_acquisition_caf_cc::galileo_e5a_noncoherentIQ_acquisit | ||||
|                 } | ||||
|             else | ||||
|                 { | ||||
|                     d_fft_code_Q_B = 0; | ||||
|                     d_magnitudeQB = 0; | ||||
|                     d_fft_code_Q_B = nullptr; | ||||
|                     d_magnitudeQB = nullptr; | ||||
|                 } | ||||
|         } | ||||
|     else | ||||
|         { | ||||
|             d_fft_code_I_B = 0; | ||||
|             d_magnitudeIB = 0; | ||||
|             d_fft_code_Q_B = 0; | ||||
|             d_magnitudeQB = 0; | ||||
|             d_fft_code_I_B = nullptr; | ||||
|             d_magnitudeIB = nullptr; | ||||
|             d_fft_code_Q_B = nullptr; | ||||
|             d_magnitudeQB = nullptr; | ||||
|         } | ||||
|  | ||||
|     // Direct FFT | ||||
| @@ -157,14 +157,14 @@ galileo_e5a_noncoherentIQ_acquisition_caf_cc::galileo_e5a_noncoherentIQ_acquisit | ||||
|     d_doppler_resolution = 0; | ||||
|     d_threshold = 0; | ||||
|     d_doppler_step = 250; | ||||
|     d_grid_doppler_wipeoffs = 0; | ||||
|     d_gnss_synchro = 0; | ||||
|     d_grid_doppler_wipeoffs = nullptr; | ||||
|     d_gnss_synchro = nullptr; | ||||
|     d_code_phase = 0; | ||||
|     d_doppler_freq = 0; | ||||
|     d_test_statistics = 0; | ||||
|     d_CAF_vector = 0; | ||||
|     d_CAF_vector_I = 0; | ||||
|     d_CAF_vector_Q = 0; | ||||
|     d_CAF_vector = nullptr; | ||||
|     d_CAF_vector_I = nullptr; | ||||
|     d_CAF_vector_Q = nullptr; | ||||
|     d_channel = 0; | ||||
|     d_gr_stream_buffer = 0; | ||||
| } | ||||
|   | ||||
| @@ -92,8 +92,8 @@ galileo_pcps_8ms_acquisition_cc::galileo_pcps_8ms_acquisition_cc( | ||||
|     d_doppler_resolution = 0; | ||||
|     d_threshold = 0; | ||||
|     d_doppler_step = 0; | ||||
|     d_grid_doppler_wipeoffs = 0; | ||||
|     d_gnss_synchro = 0; | ||||
|     d_grid_doppler_wipeoffs = nullptr; | ||||
|     d_gnss_synchro = nullptr; | ||||
|     d_code_phase = 0; | ||||
|     d_doppler_freq = 0; | ||||
|     d_test_statistics = 0; | ||||
|   | ||||
| @@ -34,8 +34,8 @@ | ||||
|  */ | ||||
|  | ||||
| #include "pcps_acquisition.h" | ||||
| #include "GLONASS_L1_L2_CA.h"  // for GLONASS_TWO_PI | ||||
| #include "GPS_L1_CA.h"         // for GPS_TWO_PI | ||||
| #include "GLONASS_L1_L2_CA.h"  // for GLONASS_TWO_PI" | ||||
| #include "gnss_sdr_create_directory.h" | ||||
| #include <boost/filesystem/path.hpp> | ||||
| #include <glog/logging.h> | ||||
| @@ -120,7 +120,7 @@ pcps_acquisition::pcps_acquisition(const Acq_Conf& conf_) : gr::block("pcps_acqu | ||||
|     // Inverse FFT | ||||
|     d_ifft = new gr::fft::fft_complex(d_fft_size, false); | ||||
|  | ||||
|     d_gnss_synchro = 0; | ||||
|     d_gnss_synchro = nullptr; | ||||
|     d_grid_doppler_wipeoffs = nullptr; | ||||
|     d_grid_doppler_wipeoffs_step_two = nullptr; | ||||
|     d_magnitude_grid = nullptr; | ||||
| @@ -445,8 +445,8 @@ void pcps_acquisition::dump_results(int32_t effective_fft_size) | ||||
|     filename.append(std::to_string(d_gnss_synchro->PRN)); | ||||
|     filename.append(".mat"); | ||||
|  | ||||
|     mat_t* matfp = Mat_CreateVer(filename.c_str(), NULL, MAT_FT_MAT73); | ||||
|     if (matfp == NULL) | ||||
|     mat_t* matfp = Mat_CreateVer(filename.c_str(), nullptr, MAT_FT_MAT73); | ||||
|     if (matfp == nullptr) | ||||
|         { | ||||
|             std::cout << "Unable to create or open Acquisition dump file" << std::endl; | ||||
|             //acq_parameters.dump = false; | ||||
|   | ||||
| @@ -123,9 +123,9 @@ pcps_acquisition_fine_doppler_cc::pcps_acquisition_fine_doppler_cc(const Acq_Con | ||||
|     d_threshold = 0; | ||||
|     d_num_doppler_points = 0; | ||||
|     d_doppler_step = 0; | ||||
|     d_grid_data = 0; | ||||
|     d_grid_doppler_wipeoffs = 0; | ||||
|     d_gnss_synchro = 0; | ||||
|     d_grid_data = nullptr; | ||||
|     d_grid_doppler_wipeoffs = nullptr; | ||||
|     d_gnss_synchro = nullptr; | ||||
|     d_code_phase = 0; | ||||
|     d_doppler_freq = 0; | ||||
|     d_test_statistics = 0; | ||||
| @@ -672,8 +672,8 @@ void pcps_acquisition_fine_doppler_cc::dump_results(int effective_fft_size) | ||||
|     filename.append(std::to_string(d_gnss_synchro->PRN)); | ||||
|     filename.append(".mat"); | ||||
|  | ||||
|     mat_t *matfp = Mat_CreateVer(filename.c_str(), NULL, MAT_FT_MAT73); | ||||
|     if (matfp == NULL) | ||||
|     mat_t *matfp = Mat_CreateVer(filename.c_str(), nullptr, MAT_FT_MAT73); | ||||
|     if (matfp == nullptr) | ||||
|         { | ||||
|             std::cout << "Unable to create or open Acquisition dump file" << std::endl; | ||||
|             d_dump = false; | ||||
|   | ||||
| @@ -97,9 +97,9 @@ pcps_assisted_acquisition_cc::pcps_assisted_acquisition_cc( | ||||
|     d_doppler_min = 0; | ||||
|     d_num_doppler_points = 0; | ||||
|     d_doppler_step = 0; | ||||
|     d_grid_data = 0; | ||||
|     d_grid_doppler_wipeoffs = 0; | ||||
|     d_gnss_synchro = 0; | ||||
|     d_grid_data = nullptr; | ||||
|     d_grid_doppler_wipeoffs = nullptr; | ||||
|     d_gnss_synchro = nullptr; | ||||
|     d_code_phase = 0; | ||||
|     d_doppler_freq = 0; | ||||
|     d_test_statistics = 0; | ||||
|   | ||||
| @@ -103,8 +103,8 @@ pcps_cccwsr_acquisition_cc::pcps_cccwsr_acquisition_cc( | ||||
|     d_doppler_resolution = 0; | ||||
|     d_threshold = 0; | ||||
|     d_doppler_step = 0; | ||||
|     d_grid_doppler_wipeoffs = 0; | ||||
|     d_gnss_synchro = 0; | ||||
|     d_grid_doppler_wipeoffs = nullptr; | ||||
|     d_gnss_synchro = nullptr; | ||||
|     d_code_phase = 0; | ||||
|     d_doppler_freq = 0; | ||||
|     d_test_statistics = 0; | ||||
|   | ||||
| @@ -112,16 +112,16 @@ pcps_quicksync_acquisition_cc::pcps_quicksync_acquisition_cc( | ||||
|     d_dump = dump; | ||||
|     d_dump_filename = dump_filename; | ||||
|  | ||||
|     d_corr_acumulator = 0; | ||||
|     d_signal_folded = 0; | ||||
|     d_corr_acumulator = nullptr; | ||||
|     d_signal_folded = nullptr; | ||||
|     d_code_folded = new gr_complex[d_fft_size](); | ||||
|     d_noise_floor_power = 0; | ||||
|     d_doppler_resolution = 0; | ||||
|     d_threshold = 0; | ||||
|     d_doppler_step = 0; | ||||
|     d_grid_doppler_wipeoffs = 0; | ||||
|     d_fft_if2 = 0; | ||||
|     d_gnss_synchro = 0; | ||||
|     d_grid_doppler_wipeoffs = nullptr; | ||||
|     d_fft_if2 = nullptr; | ||||
|     d_gnss_synchro = nullptr; | ||||
|     d_code_phase = 0; | ||||
|     d_doppler_freq = 0; | ||||
|     d_test_statistics = 0; | ||||
|   | ||||
| @@ -116,9 +116,9 @@ pcps_tong_acquisition_cc::pcps_tong_acquisition_cc( | ||||
|     d_doppler_resolution = 0; | ||||
|     d_threshold = 0; | ||||
|     d_doppler_step = 0; | ||||
|     d_grid_data = 0; | ||||
|     d_grid_doppler_wipeoffs = 0; | ||||
|     d_gnss_synchro = 0; | ||||
|     d_grid_data = nullptr; | ||||
|     d_grid_doppler_wipeoffs = nullptr; | ||||
|     d_gnss_synchro = nullptr; | ||||
|     d_code_phase = 0; | ||||
|     d_doppler_freq = 0; | ||||
|     d_test_statistics = 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez