settings = { 'file_name': './GNSS_signal_records/GPS_and_GIOVE_A-NN-fs16_3676-if4_1304.bin', 'load_all_data': True, 'byte_offset': 1000, 'data_type': np.int8, 'intermediate_frequency': 4130400, 'sampling_frequency': 16367600, 'code_frequency': 1023000, 'code_length': 1023, 'code_offset': 0, 'satellites_total': 32, 'satellites_to_search': np.array([22]),#, 22)+1,#np.array([22]), 'acquisition_search_frequency_band': 14000, 'acquisition_search_frequency_step': 500, 'acquisition_threshold': 2.5, 'use_sfft': False, 'sfft_subsampling_factor': 3 } x = gps_data_reader.read(settings) results, performance_counter = acquisition(x, settings, plot_graphs=True, plot_3d_graphs=True) for idx, found in enumerate(results['found']): if found: print '-> FOUND: prn = %s, shift = %s' % (repr(settings['satellites_to_search'][idx]), repr(results['code_shifts'][idx])) print repr(performance_counter) plt.show()
'code_offset': 0, 'satellites_total': 32, 'satellites_to_search': np.array([3, 15, 16, 19, 22]), #np.arange(32)+1, 'actual_satellite_shifts': np.array([1764, 12260, 12838, 740, 8475]), 'acquisition_search_frequency_band': 14000, 'acquisition_search_frequency_step': 500, 'acquisition_threshold': 2.5, 'snr_threshold': thresholds[idx], 'use_sfft': False, 'sfft_subsampling_factor': 2, 'maximum_runs': 20, } x = gps_data_reader.read(settings) results, performance_counter = acquisition(x, settings, plot_graphs=False, plot_3d_graphs=False) print results for idx, found in enumerate(results['found']): if found: print '-> FOUND: prn = %s, shift = %s' % ( repr(settings['satellites_to_search'][idx]), repr(results['code_shifts'][idx])) print repr(performance_counter)