1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-29 08:23:19 +00:00
Commit Graph

673 Commits

Author SHA1 Message Date
Carles Fernandez
7fc0cec60c
Simplify block factory
Avoid duplication of code
2020-07-12 23:08:58 +02:00
Carles Fernandez
33cee4a759
Remove all warnings raised by bugprone-* clang-tidy checks in acquisition adapters 2020-07-10 13:35:15 +02:00
Carles Fernandez
c04948fd02
Reduce number of warnings raised by bugprone-* clang-tidy checks 2020-07-10 00:37:55 +02:00
Carles Fernandez
09bcd1981c Replace std::endl by \n character. There is no need to always flush the stream. 2020-07-07 18:53:50 +02:00
Carles Fernandez
58853ace7d
Implement GNSS-SDR.GPS_banned_prns, GNSS-SDR.Galileo_banned_prns, GNSS-SDR.Glonass_banned_prns, and GNSS-SDR.Beidou_banned_prns configuration parameters. The user can specify lists of satellites that will not be processed (e.g. GNSS-SDR.Galileo_banned_prns=14,18 since Galileo E14 and E18 satellites are not usable for PVT). Documented at https://gnss-sdr.org/docs/sp-blocks/global-parameters/\#banned-satellites Inspired by #397 2020-07-07 00:05:31 +02:00
Carles Fernandez
98bea8292c
Do not stop the receiver if SysV message queues can't be created 2020-06-30 10:41:59 +02:00
Carles Fernandez
2b3d4b321d
Make the adapters take the configuration pointer as const 2020-06-29 09:07:41 +02:00
Carles Fernandez
a01dfa4052
Fix clang-format and clang-tidy jobs 2020-06-27 11:52:59 +02:00
Carles Fernandez
c784dfe125
Fix a bug that could cause a crash on receiver stopping
If a channel event was happening after flowgraph stop and before flowgraph disconnection, it caused a crash. This was avoided by sleeping the control thread during 500 ms after disconnection and before the block destructors were called, so the event could be processed, but this was not a robust solution.
2020-06-27 09:52:59 +02:00
Carles Fernandez
5a3db5a53d
Add debug internal logging for destructors. Sort destructor order 2020-06-25 02:50:07 +02:00
Carles Fernandez
3fcc7b7f85
Remove unused data member 2020-06-24 11:45:01 +02:00
Carles Fernandez
ba022cc5f7
Improve consistency of CMake scripts 2020-06-24 11:42:45 +02:00
Carles Fernandez
bcd5bfa6ff
Indicate that the property method of configuration is a getter 2020-06-23 11:05:31 +02:00
Carles Fernandez
037a1fcb5f
Improve headers, large data members first. Improve nav message interfaces 2020-06-23 09:47:58 +02:00
Carles Fernandez
92f013c6b9
Improve consistency of variable naming
block_factory_ is not a data member, replaced by block_factory
2020-06-21 23:07:31 +02:00
Carles Fernandez
afa16c6769
Remove sleeps 2020-06-20 22:18:38 +02:00
Carles Fernandez
0d5b5894b4
Sort header files 2020-06-19 12:39:28 +02:00
Carles Fernandez
81af1a531b
Redesign of pointer management
Avoid indirection caused by passing shared_ptr by reference

The block factory does not have responsability on the lifetime of their inputs

Define std::make_unique when using C++11 and make use of it

Printers are turned into unique_ptr to express ownership

Printers do not participate on the lifelime of the data, so they take const raw pointers

Modernize tests code
2020-06-18 11:49:28 +02:00
Carles Fernandez
3beb1e98af
Use lambdas if possible.
Fine tuning in CMake scripts
2020-06-15 19:23:59 +02:00
Carles Fernandez
ae50ebbaa5
Prefer use of CMAKE_SOURCE_DIR 2020-06-13 21:15:47 +02:00
Carles Fernandez
ee84f60fb4
Simplify CMake scripts 2020-06-13 10:56:49 +02:00
Carles Fernandez
0df4277d36
Unify criteria in target definitions, more informative names 2020-06-13 00:32:40 +02:00
Carles Fernandez
2a3d682f1f
Make use of target_sources(), make use of target propagation to reduce redundancy in dependencies, some fixes for Clang and CMake < 3.11. Use generic lambdas with auto 2020-06-08 20:04:01 +02:00
Carles Fernandez
6de4d28ab1
Ignore modernize-avoid-bind clang-tidy fix 2020-04-26 11:07:19 +02:00
Carles Fernandez
5f974a8f17
Replace boost::shared_ptr by std::shared_ptr 2020-04-02 13:23:20 +02:00
Carles Fernandez
c470d43432
Fix shadowed variables
See MISRA C++:2008, 2-10-2 - Identifiers declared in an inner scope shall not hide an identifier declared in an outer scope
and https://rules.sonarsource.com/cpp/RSPEC-1117\?search\=shadow
2020-02-26 22:40:00 +01:00
Carles Fernandez
538c1e6182 Fix shadowed variables 2020-02-26 18:16:04 +01:00
Carles Fernandez
2ded19342f
Improve headers 2020-02-12 00:04:29 +01:00
Carles Fernandez
955348b080
Remove trailing underscore in header guards 2020-02-08 10:10:46 +01:00
Carles Fernandez
4d0d263280
Make the software package compliant with the REUSE Specification v3.0 (see https://reuse.software/spec/)
Update license headers to SPDX format (see https://spdx.org/)
Add license to all files
Add CI job in GitHub Actions to ensure compliance
2020-02-08 01:20:02 +01:00
Carles Fernandez
d6ec2a7b2c
Update links (mainly from http to https, fix broken links) 2020-02-05 21:24:46 +01:00
Carles Fernandez
bc9725c745
Simplify cmake scripts, fix volk_gnsssdr cross-compilation, update ProtocolBuffers to 3.11.2 2020-01-13 01:49:00 +01:00
Carles Fernandez
c9e03557b7
Remove tabs 2019-10-05 03:16:31 +02:00
Carles Fernandez
c63c85ff36
Set assist_dual_frequency_acq to true by default only for multiple-band receivers
Fixes configurations which do not contain signals in L1
2019-10-04 09:17:29 +02:00
Carles Fernandez
ceaa785423 Set global parameter assist_dual_frequency_acq to true by default 2019-10-03 19:15:05 +02:00
Marc Majoral
d379a3ed6c When using the FPGA, the Ad9361FpgaSignalSource is instantiated after the acquisition and tracking classes. In this way, when using the receiver in post-processing mode, when the DMA starts sending signal samples to the receiver, the acquisition and tracking classes are already configured and ready. 2019-10-01 16:01:44 +02:00
Carles Fernandez
0c2efce10a Replace custom_year parameter name and type by bool pre_2009_file to process files dated from 1999 to 2009 2019-09-18 18:25:07 +02:00
Carles Fernandez
837dcc6859 Improve formatting 2019-09-17 16:25:17 +02:00
Javier
ad51654fbf Adding global configuration option to specify a custom year in order to postprocess old GNSS captures and avoid wrong week rollover 2019-09-13 16:36:41 +02:00
Carles Fernandez
e80122f4ff
Apply clang tidy checks and clang-format 2019-09-13 08:56:37 +02:00
Carles Fernandez
0520d400b3 Apply clang-tidy 2019-09-11 22:31:34 +00:00
Carles Fernandez
38a987607e
Make use of the new Boost::headers target introduced in CMake 3.15 2019-09-07 12:36:19 +02:00
Carles Fernandez
02318c0382
Give to global parameters more meaningful name 2019-08-31 11:37:29 +02:00
Javier
1dd1d826f8 Re-assign signal to channel in case of re-adquiring the same satellite 2019-08-30 17:00:12 +02:00
Carles Fernandez
df05c7418e
Fix bugprone-too-small-loop-variable clang-tidy check warnings 2019-08-24 17:34:12 +02:00
Carles Fernandez
95f688dcb0
Mark all constructors callable with one argument as explicit 2019-08-23 21:25:44 +02:00
Carles Fernandez
d4bb6e5731
Always have a space between // and comment 2019-08-18 22:16:13 +02:00
Carles Fernandez
c31d9dea40
Fix errors risen by include_what_you_use 2019-08-17 13:56:54 +02:00
Carles Fernandez
d469c694e2
Apply default clang-tidy check 2019-08-13 01:06:47 +02:00
Carles Fernandez
487010346f
Apply readability-isolate-declaration clang-tidy check 2019-08-13 00:19:31 +02:00