Permalink
Browse files

moving things to trunk

git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@72 64b25241-fba3-4117-9849-534c7e92360d
  • Loading branch information...
carlesfernandez committed Oct 1, 2011
1 parent 0d9423d commit 228fa3b797dba7d0192f751e7e25a7b8348f9326
Showing with 126,904 additions and 0 deletions.
  1. +674 −0 COPYING
  2. +1,679 −0 Doxyfile
  3. +65 −0 README
  4. +94 −0 conf/mercurio.conf
  5. +155 −0 docs/gnss_sdr_eclipse_style.xml
  6. +50 −0 jamroot.jam
  7. +307 −0 src/algorithms/acquisition/adapters/gps_l1_ca_gps_sdr_acquisition.cc
  8. +123 −0 src/algorithms/acquisition/adapters/gps_l1_ca_gps_sdr_acquisition.h
  9. +254 −0 src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition.cc
  10. +117 −0 src/algorithms/acquisition/adapters/gps_l1_ca_pcps_acquisition.h
  11. +245 −0 src/algorithms/acquisition/adapters/gps_l1_ca_tong_pcps_acquisition.cc
  12. +119 −0 src/algorithms/acquisition/adapters/gps_l1_ca_tong_pcps_acquisition.h
  13. +5 −0 src/algorithms/acquisition/adapters/jamfile.jam
  14. +330 −0 src/algorithms/acquisition/gnuradio_blocks/gps_l1_ca_gps_sdr_acquisition_cc.cc
  15. +166 −0 src/algorithms/acquisition/gnuradio_blocks/gps_l1_ca_gps_sdr_acquisition_cc.h
  16. +276 −0 src/algorithms/acquisition/gnuradio_blocks/gps_l1_ca_gps_sdr_acquisition_ss.cc
  17. +155 −0 src/algorithms/acquisition/gnuradio_blocks/gps_l1_ca_gps_sdr_acquisition_ss.h
  18. +319 −0 src/algorithms/acquisition/gnuradio_blocks/gps_l1_ca_pcps_acquisition_cc.cc
  19. +163 −0 src/algorithms/acquisition/gnuradio_blocks/gps_l1_ca_pcps_acquisition_cc.h
  20. +354 −0 src/algorithms/acquisition/gnuradio_blocks/gps_l1_ca_tong_pcps_acquisition_cc.cc
  21. +186 −0 src/algorithms/acquisition/gnuradio_blocks/gps_l1_ca_tong_pcps_acquisition_cc.h
  22. +6 −0 src/algorithms/acquisition/gnuradio_blocks/jamfile.jam
  23. +2 −0 src/algorithms/acquisition/jamfile.jam
  24. +266 −0 src/algorithms/channel/adapters/channel.cc
  25. +121 −0 src/algorithms/channel/adapters/channel.h
  26. +3 −0 src/algorithms/channel/adapters/jamfile.jam
  27. +3 −0 src/algorithms/channel/jamfile.jam
  28. +209 −0 src/algorithms/channel/libs/gps_l1_ca_channel_fsm.cc
  29. +96 −0 src/algorithms/channel/libs/gps_l1_ca_channel_fsm.h
  30. +3 −0 src/algorithms/channel/libs/jamfile.jam
  31. +136 −0 src/algorithms/conditioner/adapters/direct_resampler_conditioner.cc
  32. +87 −0 src/algorithms/conditioner/adapters/direct_resampler_conditioner.h
  33. +3 −0 src/algorithms/conditioner/adapters/jamfile.jam
  34. +146 −0 src/algorithms/conditioner/gnuradio_blocks/direct_resampler_conditioner_cc.cc
  35. +93 −0 src/algorithms/conditioner/gnuradio_blocks/direct_resampler_conditioner_cc.h
  36. +147 −0 src/algorithms/conditioner/gnuradio_blocks/direct_resampler_conditioner_ss.cc
  37. +83 −0 src/algorithms/conditioner/gnuradio_blocks/direct_resampler_conditioner_ss.h
  38. +4 −0 src/algorithms/conditioner/gnuradio_blocks/jamfile.jam
  39. +2 −0 src/algorithms/conditioner/jamfile.jam
  40. +9 −0 src/algorithms/jamfile.jam
  41. +82 −0 src/algorithms/libs/gnss_sdr_valve.cc
  42. +69 −0 src/algorithms/libs/gnss_sdr_valve.h
  43. +169 −0 src/algorithms/libs/gps_sdr_defines.h
  44. +816 −0 src/algorithms/libs/gps_sdr_fft.cc
  45. +69 −0 src/algorithms/libs/gps_sdr_fft.h
  46. +104,452 −0 src/algorithms/libs/gps_sdr_prn_codes_short.h
  47. +387 −0 src/algorithms/libs/gps_sdr_signal_processing.cc
  48. +56 −0 src/algorithms/libs/gps_sdr_signal_processing.h
  49. +1,041 −0 src/algorithms/libs/gps_sdr_simd.cc
  50. +68 −0 src/algorithms/libs/gps_sdr_simd.h
  51. +493 −0 src/algorithms/libs/gps_sdr_x86.cc
  52. +21 −0 src/algorithms/libs/gps_sdr_x86.h
  53. +10 −0 src/algorithms/libs/jamfile.jam
  54. +104 −0 src/algorithms/libs/pass_through.cc
  55. +97 −0 src/algorithms/libs/pass_through.h
  56. +115 −0 src/algorithms/observables/adapters/gps_l1_ca_observables.cc
  57. +94 −0 src/algorithms/observables/adapters/gps_l1_ca_observables.h
  58. +3 −0 src/algorithms/observables/adapters/jamfile.jam
  59. +164 −0 src/algorithms/observables/gnuradio_blocks/gps_l1_ca_observables_cc.cc
  60. +76 −0 src/algorithms/observables/gnuradio_blocks/gps_l1_ca_observables_cc.h
  61. +3 −0 src/algorithms/observables/gnuradio_blocks/jamfile.jam
  62. +3 −0 src/algorithms/observables/jamfile.jam
  63. +3 −0 src/algorithms/observables/libs/jamfile.jam
  64. +314 −0 src/algorithms/observables/libs/rinex_2_1_printer.cc
  65. +52 −0 src/algorithms/observables/libs/rinex_2_1_printer.h
  66. +105 −0 src/algorithms/output_filter/adapters/file_output_filter.cc
  67. +86 −0 src/algorithms/output_filter/adapters/file_output_filter.h
  68. +4 −0 src/algorithms/output_filter/adapters/jamfile.jam
  69. +102 −0 src/algorithms/output_filter/adapters/null_sink_output_filter.cc
  70. +90 −0 src/algorithms/output_filter/adapters/null_sink_output_filter.h
  71. +2 −0 src/algorithms/output_filter/jamfile.jam
  72. +252 −0 src/algorithms/signal_source/adapters/file_signal_source.cc
  73. +123 −0 src/algorithms/signal_source/adapters/file_signal_source.h
  74. +4 −0 src/algorithms/signal_source/adapters/jamfile.jam
  75. +219 −0 src/algorithms/signal_source/adapters/usrp1_signal_source.cc
  76. +106 −0 src/algorithms/signal_source/adapters/usrp1_signal_source.h
  77. +2 −0 src/algorithms/signal_source/jamfile.jam
  78. +127 −0 src/algorithms/telemetry_decoder/adapters/gps_l1_ca_telemetry_decoder.cc
  79. +103 −0 src/algorithms/telemetry_decoder/adapters/gps_l1_ca_telemetry_decoder.h
  80. +3 −0 src/algorithms/telemetry_decoder/adapters/jamfile.jam
  81. +239 −0 src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l1_ca_telemetry_decoder_cc.cc
  82. +97 −0 src/algorithms/telemetry_decoder/gnuradio_blocks/gps_l1_ca_telemetry_decoder_cc.h
  83. +3 −0 src/algorithms/telemetry_decoder/gnuradio_blocks/jamfile.jam
  84. +3 −0 src/algorithms/telemetry_decoder/jamfile.jam
  85. +184 −0 src/algorithms/telemetry_decoder/libs/gps_l1_ca_subframe_fsm.cc
  86. +76 −0 src/algorithms/telemetry_decoder/libs/gps_l1_ca_subframe_fsm.h
  87. +3 −0 src/algorithms/telemetry_decoder/libs/jamfile.jam
  88. +147 −0 src/algorithms/tracking/adapters/gps_l1_ca_dll_pll_tracking.cc
  89. +107 −0 src/algorithms/tracking/adapters/gps_l1_ca_dll_pll_tracking.h
  90. +3 −0 src/algorithms/tracking/adapters/jamfile.jam
  91. +424 −0 src/algorithms/tracking/gnuradio_blocks/gps_l1_ca_dll_pll_tracking_cc.cc
  92. +189 −0 src/algorithms/tracking/gnuradio_blocks/gps_l1_ca_dll_pll_tracking_cc.h
  93. +3 −0 src/algorithms/tracking/gnuradio_blocks/jamfile.jam
  94. +2 −0 src/algorithms/tracking/jamfile.jam
  95. +72 −0 src/core/interfaces/acquisition_interface.h
  96. +63 −0 src/core/interfaces/channel_interface.h
  97. +76 −0 src/core/interfaces/configuration_interface.h
  98. +69 −0 src/core/interfaces/gnss_block_interface.h
  99. +59 −0 src/core/interfaces/observables_interface.h
  100. +60 −0 src/core/interfaces/telemetry_decoder_interface.h
  101. +68 −0 src/core/interfaces/tracking_interface.h
  102. +3 −0 src/core/jamfile.jam
  103. +96 −0 src/core/libs/INIReader.cc
  104. +83 −0 src/core/libs/INIReader.h
  105. +176 −0 src/core/libs/ini.cc
  106. +91 −0 src/core/libs/ini.h
  107. +5 −0 src/core/libs/jamfile.jam
  108. +123 −0 src/core/libs/string_converter.cc
  109. +52 −0 src/core/libs/string_converter.h
  110. +90 −0 src/core/receiver/concurrent_queue.h
  111. +49 −0 src/core/receiver/control_message.h
  112. +83 −0 src/core/receiver/control_message_factory.cc
  113. +64 −0 src/core/receiver/control_message_factory.h
  114. +205 −0 src/core/receiver/control_thread.cc
  115. +115 −0 src/core/receiver/control_thread.h
  116. +193 −0 src/core/receiver/file_configuration.cc
  117. +87 −0 src/core/receiver/file_configuration.h
  118. +283 −0 src/core/receiver/gnss_block_factory.cc
  119. +75 −0 src/core/receiver/gnss_block_factory.h
  120. +457 −0 src/core/receiver/gnss_flowgraph.cc
  121. +126 −0 src/core/receiver/gnss_flowgraph.h
  122. +112 −0 src/core/receiver/in_memory_configuration.cc
  123. +77 −0 src/core/receiver/in_memory_configuration.h
  124. +8 −0 src/core/receiver/jamfile.jam
  125. +214 −0 src/core/system_parameters/GPS_L1_CA.h
  126. +542 −0 src/core/system_parameters/gps_navigation_message.cc
  127. +131 −0 src/core/system_parameters/gps_navigation_message.h
  128. +100 −0 src/core/system_parameters/gps_telemetry.cc
  129. +44 −0 src/core/system_parameters/gps_telemetry.h
  130. +4 −0 src/core/system_parameters/jamfile.jam
  131. +4 −0 src/jamfile.jam
  132. +49 −0 src/main/jamfile.jam
  133. +75 −0 src/main/main.cc
  134. +50 −0 src/tests/arithmetic/complex_arithmetic_gsl.cc
  135. +45 −0 src/tests/arithmetic/complex_arithmetic_libc.cc
  136. +49 −0 src/tests/arithmetic/complex_arithmetic_simd.cc
  137. +67 −0 src/tests/arithmetic/correlations_gsl.cc
  138. +62 −0 src/tests/arithmetic/correlations_libc.cc
  139. +118 −0 src/tests/arithmetic/correlations_simd.cc
  140. +42 −0 src/tests/arithmetic/jamfile.jam
  141. +55 −0 src/tests/configuration/file_configuration_test.cc
  142. +115 −0 src/tests/configuration/in_memory_configuration_test.cc
  143. +75 −0 src/tests/control_thread/control_message_factory_test.cc
  144. +124 −0 src/tests/control_thread/control_thread_test.cc
  145. +26 −0 src/tests/data/config_file_sample.txt
  146. +29 −0 src/tests/flowgraph/adder_test.cc
  147. +30 −0 src/tests/flowgraph/file_output_filter_test.cc
  148. +61 −0 src/tests/flowgraph/file_signal_source_test.cc
  149. +181 −0 src/tests/flowgraph/gnss_block_factory_test.cc
  150. +66 −0 src/tests/flowgraph/gnss_flowgraph_test.cc
  151. +35 −0 src/tests/flowgraph/pass_through_test.cc
  152. +29 −0 src/tests/gnss_block/adder_test.cc
  153. +30 −0 src/tests/gnss_block/file_output_filter_test.cc
  154. +61 −0 src/tests/gnss_block/file_signal_source_test.cc
  155. +181 −0 src/tests/gnss_block/gnss_block_factory_test.cc
  156. +132 −0 src/tests/gnss_block/gnss_sdr_acquisition_test.cc
  157. +71 −0 src/tests/gnss_block/gnss_sdr_direct_resampler.cc
  158. +81 −0 src/tests/gnss_block/gnss_sdr_signal_conditioner_test.cc
  159. +80 −0 src/tests/gnss_block/gnss_sdr_usrp_signal_source_test.cc
  160. +50 −0 src/tests/gnss_block/gnss_sdr_valve_test.cc
  161. +81 −0 src/tests/gnss_block/gps_sdr_acquisition_test.cc
  162. +98 −0 src/tests/gnss_block/gr_pfb_arb_resampler.cc
  163. +97 −0 src/tests/gnss_block/gr_rational_resampler.cc
  164. +71 −0 src/tests/gnuradio_block/gnss_sdr_direct_resampler.cc
  165. +50 −0 src/tests/gnuradio_block/gnss_sdr_valve_test.cc
  166. +81 −0 src/tests/gnuradio_block/gps_sdr_acquisition_test.cc
  167. +64 −0 src/tests/gnuradio_block/gps_sdr_fft_block_test.cc
  168. +94 −0 src/tests/gnuradio_block/gps_sdr_tong_acquisition_test.cc
  169. +98 −0 src/tests/gnuradio_block/gr_pfb_arb_resampler.cc
  170. +97 −0 src/tests/gnuradio_block/gr_rational_resampler.cc
  171. +77 −0 src/tests/gps_sdr/simd_tests.cc
  172. +58 −0 src/tests/integration/test_1.cc
  173. +3 −0 src/tests/jamfile.jam
  174. +51 −0 src/tests/string_converter/INIReader/INIReader.cpp
  175. +43 −0 src/tests/string_converter/INIReader/INIReader.h
  176. +130 −0 src/tests/string_converter/INIReader/ini.c
  177. +45 −0 src/tests/string_converter/INIReader/ini.h
  178. +2 −0 src/tests/string_converter/INIReader/jamfile.jam
  179. +101 −0 src/tests/string_converter/string_converter.cc
  180. +34 −0 src/tests/string_converter/string_converter.h
  181. +61 −0 src/tests/string_converter/string_converter_test.cc
  182. +13 −0 src/tests/test_main.cc
  183. +37 −0 src/tests/utils/gr_complex_to_short.cc
  184. +54 −0 src/tests/utils/prn_codes_generator.cc
  185. +41 −0 src/tests/utils/saw_signal_generator.cc
  186. +37 −0 src/tests/utils/short_to_gr_complex.cc
  187. +58 −0 src/tests/utils/test_1.cc
  188. +7 −0 src/utils/plot_acquisition_magnitudes.m
  189. +15 −0 src/utils/plot_carrier_spectrum.m
  190. +15 −0 src/utils/plot_delay_signal.m
  191. +15 −0 src/utils/plot_delay_spectrum.m
  192. +12 −0 src/utils/plot_gps_signal_spectrum.m
  193. +5 −0 src/utils/plot_pfssa.m
  194. +15 −0 src/utils/plot_prn_code_signal.m
  195. +15 −0 src/utils/plot_resampled_prn_code_signal.m
  196. +15 −0 src/utils/plot_resampled_prn_code_spectrum.m
  197. +18 −0 src/utils/prn_spectrum_analysis.m
  198. +28 −0 src/utils/spectrum_analysis.m
  199. +16 −0 src/utils/spectrum_analysis_complex.m
View
674 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
View
1,679 Doxyfile

Large diffs are not rendered by default.

Oops, something went wrong.
View
65 README
@@ -0,0 +1,65 @@
+How to set up the compilation environment for Ubuntu 9.10 and 10.04
+
+- Download GNU Radio 3.3.0 from ftp://ftp.gnu.org/gnu/gnuradio
+- Compile and install following the instructions at http://gnuradio.org/redmine/wiki/1/UbuntuInstall
+- Install bjam with the command 'sudo apt-get install bjam'
+- Install Boost.Build with the command 'sudo apt-get install boost-build'
+- Add the system variable GNURADIO_330_ROOT with the location of the sources of gnuradio-3.3.0
+- Download gtest-1.4.0.tar.gz from http://code.google.com/p/googletest.
+- Unpack gtest-1.4.0.tar.gz into some folder.
+- From the folder containing gtest build the libraries and install them:
+ - GTEST$ ./configure
+ - GTEST$ make
+ - GTEST$ make check
+ - GTEST$ sudo make install
+- Add the following line to your .bashrc:
+ - export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
+- Download glog-0.3.0.tar.gz from http://code.google.com/p/google-glog.
+- Unpack glog-0.3.0.tar.gz into some folder.
+- From the folder containing glog, build and install the libraries:
+ - GLOG$ ./configure
+ - GLOG$ make
+ - GLOG$ sudo make install
+ NOTE: THE LOG FILES ARE STORED BY DEFAULT /TMP/
+- Download gflags-1.3.tar.gz from http://code.google.com/p/google-gflags.
+- Unpack gflags-1.3.tar.gz into some folder.
+- From the folder containing gflags, build the libraries and install them:
+ - GFLAGS$ ./configure
+ - GFLAGS$ make
+ - GFLAGS$ sudo make install
+
+(11/12/2010) GSL AND CBLAS ARITHMETIC
+
+In order to compile the arithmetic tests, the GNU Scientific Library (GSL) library package is needed.
+Install the ubuntu package with:
+
+sudo apt-get install libgsl0ldbl
+
+
+To build the project type call bjam from the project root folder.
+
+PROFILING
+
+In order to do profiling, you'll have to install google-perftools library.
+- Download google-perftools-1.5.tar.gz from http://code.google.com/p/google-perftools.
+- Unpack google-perftools-1.5.tar.gz into some folder.
+- From the folder containing google-perftools, build and install the libraries:
+ - PERFTOOLS$ ./configure
+ - PERFTOOLS$ make
+ - PERFTOOLS$ sudo make install
+
+Once google-perftools is installed, you can use the script "profiler" which is placed
+in the root folder of MERCURIO sources. The script must be run as root since it makes use
+of "nice". The result of the profiling are two files, mercurio.cpu.prof and mercurio.head.prof.0001.heap,
+that contain the results for CPU and HEAP profiling. You can use google-perftools' script pprof
+to analyze the recorded data.
+
+(Sample of .bashrc configuration)
+
+export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
+export GNURADIO_330_ROOT=/home/gnss/sdr/gnuradio-3.3.0
+
+
+
+
+
View
@@ -0,0 +1,94 @@
+; Sample for a configuration file for MERCURIO
+
+[mercurio]
+
+;######### CONTROL_THREAD CONFIG ############
+ControlThread.wait_for_flowgraph=false
+
+;######### SIGNAL_SOURCE CONFIG ############
+SignalSource.implementation=File_Signal_Source
+;SignalSource.filename=/media/My Passport/spirent scenario 2/data/sc2_d8.dat
+;SignalSource.filename=/home/luis/Project/signals/GPS_cap1.dat
+SignalSource.filename=/media/My Passport/KINGSTON (G)/Project Luis/GPSL1_Fs_8MHz_ID_1_CN0_60.dat
+SignalSource.item_type=gr_complex
+SignalSource.sampling_frequency=8000000
+SignalSource.samples=0
+SignalSource.repeat=false
+SignalSource.dump=false
+SignalSource.enable_throttle_control=true
+
+;######### SIGNAL_CONDITIONER CONFIG ############
+SignalConditioner.implementation=Pass_Through
+SignalConditioner.item_type=gr_complex
+SignalConditioner.sample_freq_in=8000000
+SignalConditioner.sample_freq_out=8000000
+SignalConditioner.dump=false
+
+;######### CHANNELS CONFIGURATION CONFIG ############
+Channels.count=1
+
+;######### ACQUISITION CONFIG ############
+
+Acquisition.dump=false
+Acquisition.dump_filename=./acq_dump.dat
+Acquisition.item_type=gr_complex
+Acquisition.fs_in=8000000
+Acquisition.if=0
+Acquisition.sampled_ms=1
+
+;######### ACQUISITION 0 CONFIG ############
+Acquisition0.implementation=GPS_L1_CA_PCPS_Acquisition
+Acquisition0.threshold=0.006
+Acquisition0.doppler_max=10000
+Acquisition0.doppler_step=250
+Acquisition0.satellite=1
+Acquisition0.repeat_satellite=true
+
+;######### ACQUISITION 1 CONFIG ############
+Acquisition1.implementation=GPS_L1_CA_GPS_SDR_Acquisition
+Acquisition1.threshold=30
+Acquisition1.doppler_max=10000
+Acquisition1.doppler_step=250
+Acquisition1.satellite=16
+Acquisition1.repeat_satellite=true
+
+;######### ACQUISITION 2 CONFIG ############
+Acquisition2.implementation=GPS_L1_CA_TONG_PCPS_Acquisition
+Acquisition2.threshold=
+Acquisition2.doppler_max=10000
+Acquisition2.doppler_step=250
+Acquisition2.satellite=21
+Acquisition2.repeat_satellite=true
+
+
+;######### ACQUISITION 3 CONFIG ############
+Acquisition3.implementation=GPS_L1_CA_PCPS_Acquisition
+Acquisition3.threshold=105000
+
+
+
+;######### TRACKING CONFIG ############
+Tracking.implementation=GPS_L1_CA_DLL_PLL_Tracking
+Tracking.item_type=gr_complex
+Tracking.vector_length=8000
+Tracking.fs_in=8000000
+Tracking.if=0
+Tracking.dump=true
+Tracking.dump_filename=./trk_dump.dat
+
+;######### TELEMETRY DECODER CONFIG ############
+TelemetryDecoder.implementation=GPS_L1_CA_Telemetry_Decoder
+TelemetryDecoder.item_type=gr_complex
+
+;######### OBSERVABLES CONFIG ############
+Observables.implementation=GPS_L1_CA_Observables
+Observables.fs_in=8000000;
+
+;######### PVT CONFIG ############
+PVT.implementation=Pass_Through
+PVT.item_type=gr_complex
+
+;######### OUTPUT_FILTER CONFIG ############
+OutputFilter.implementation=Null_Sink_Output_Filter
+OutputFilter.filename=data/mercurio.dat
+OutputFilter.item_type=gr_complex
Oops, something went wrong.

0 comments on commit 228fa3b

Please sign in to comment.