1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-09-30 16:00:51 +00:00
Commit Graph

280 Commits

Author SHA1 Message Date
Carles Fernandez
afc7f1031c
Remove tabs 2019-08-17 14:23:35 +02:00
Carles Fernandez
c31d9dea40
Fix errors risen by include_what_you_use 2019-08-17 13:56:54 +02:00
Carles Fernandez
0066d581a1
Fix warning raised by clang-tidy check cert-flp30-c
Loop induction expression should not have floating-point type
2019-08-16 15:37:39 +02:00
Carles Fernandez
e89a92469b
Remove all c-style casts 2019-08-16 15:19:31 +02:00
Carles Fernandez
d298bdf0a9
Remove unused functions with defects in memory management 2019-08-14 20:06:48 +02:00
Carles Fernandez
c52a3dd4b5
Remove unused variables 2019-08-14 12:48:09 +02:00
Carles Fernandez
4eb8f2c14e
Avoid C99 extensions in initializations 2019-08-14 11:10:51 +02:00
Carles Fernandez
a66ef4fb34
Apply modernize-redundant-void-arg clang-tidy check 2019-08-14 00:47:48 +02:00
Carles Fernandez
e693e3f1a4
Fix -Wstringop-truncation warning 2019-08-13 22:03:58 +02:00
Carles Fernandez
bbaa9310ec
Ensure that buffers are always terminated 2019-08-13 20:49:48 +02:00
Carles Fernandez
76515228b0
Avoid garbage values 2019-08-13 14:35:21 +02:00
Carles Fernandez
8867a9327c
Avoid null pointer argument in call to string comparison function 2019-08-13 13:52:43 +02:00
Carles Fernandez
1bfa866354
Remove usage of deprecated bzero, replaced by memset 2019-08-13 13:48:17 +02:00
Carles Fernandez
6c5a4c4859
Remove usage of strcpy
See CWE-119 https://cwe.mitre.org/data/definitions/119.html
2019-08-13 13:10:45 +02:00
Carles Fernandez
487010346f
Apply readability-isolate-declaration clang-tidy check 2019-08-13 00:19:31 +02:00
Carles Fernandez
070996cdb4
Apply clang-tidy check readability-else-after-return 2019-08-04 13:15:03 +02:00
Carles Fernandez
a4d6800e22
Update copyright year
Applied on files changed since last release
clang-format applied
2019-07-26 12:38:20 +02:00
Carles Fernandez
56b65df044
Improve initialization
Works in Linux and MacOS
2019-07-26 00:55:16 +02:00
Carles Fernandez
471428f867
Fix typos detected by codespell 2019-07-20 12:55:46 +02:00
Carles Fernandez
0e54fad652 Merge branch 'bds_fix' of https://github.com/dmiralles2009/gnss-sdr into dmiralles2009-bds_fix 2019-07-15 09:48:31 +02:00
Damian Miralles
410269069a
bds: Bug fixes in carrier wavelength computation
Changed wavelength computation to native method within RTKLIb. The native method
 should also help in the PVT computation of GLONASS satellites as it considers
the freq. offset when computing the wavelength. This also fixes typo in tracking
 stage for MEO satellites of the BDS constellation.

Note: A similar approach to carrier wavelength computation should be applied to
the obs_data in rtk_solver. In theory, static allocation should not be needed for
the types.
2019-07-14 20:09:52 -05:00
Carles Fernandez
4dfb2cf5d2
Avoid out-of-bounds read 2019-07-14 03:17:57 +02:00
Carles Fernandez
89aa7c61e6
Avoid out-of-bounds read 2019-07-14 03:00:26 +02:00
Damian Miralles
81ad7484bd
Merge branch 'next' into bds_b3i_bug_fix 2019-07-10 09:21:54 -05:00
Damian Miralles
6ba57f0e12
bds_b3i: fixing pvt computation for bds b3i single freq solution 2019-07-02 18:57:44 -05:00
Carles Fernandez
c37b3e00b5
Use uppercase literal suffix 2019-06-29 14:22:15 +02:00
Javier Arribas
33636758f1 Moving TOW crossover GPS time adjustment to convenient location 2019-05-13 12:13:35 +02:00
Javier Arribas
87e30c2fcb Fix TOW week crossover in PVT time prints and rinex obs prints 2019-05-09 18:05:46 +02:00
Javier Arribas
7ed88c26b6 Fix the TOW weel crossover situation in observables and PVT 2019-05-08 14:55:14 +02:00
Carles Fernandez
77851e5589
BeiDou B3I bug fixes (credits to dmiralles2019) 2019-03-26 22:34:08 +01:00
Damian Miralles
1a2d90a8f1
bds_b3i: fixing bugs in pvt computation 2019-03-26 22:15:31 +01:00
Carles Fernandez
cb59c1cc83
Fix bug in MacOS when BeiDou was enabled in rtklib.h
The BLAS and LAPACK implementations that come with the Accelerate Framework (soft-linked in /usr/bin) caused a random crash when exiting the program, only if the variable ENABDS was set. This bug disappears when linking to the libraries that Homebrew or Macports install, or when manually downloaded, built and installed by the user
2019-03-22 11:00:13 +01:00
Damian Miralles
10910269f4
Merge branch 'next' into bds_b3i. Keep code up to date 2019-03-17 18:58:44 -05:00
Carles Fernandez
e6931eb86d
Add header, minor cleaning 2019-03-17 02:26:34 +01:00
Carles Fernandez
ba73da0081
Clean includes 2019-03-16 13:44:53 +01:00
Damian Miralles
90f8c2fe33
bds_b3i: working on bug for D1 and D2 messages 2019-03-13 17:25:37 -05:00
Carles Fernandez
dd7a52c93b
Fix headers 2019-03-06 21:54:39 +01:00
Carles Fernandez
c82c7225dd Improve includes with the aid of include-what-you-use (IWYU)
See rationale at https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/WhyIWYU.md
2019-03-05 08:59:04 +01:00
Carles Fernandez
8e66577ee9
Reorder PVT
Add includes
Reorder CMake scripts
Put work at the end of the file
2019-02-26 01:38:48 +01:00
Carles Fernandez
07259159af Apply clang-tidy checks 2019-02-22 21:34:15 +00:00
Carles Fernandez
62a7e54359
Introduce readability-identifier-naming check
This commit enforces naming style for Classes and global constants:
Camel_Snake_Case for Classes
UPPER_CASE for global constants
CamelCase for abstract classes
2019-02-22 10:47:24 +01:00
Carles Fernandez
b5e5277662
Fix random crashes when program ended in macOS
The program randomly crashed when destroying the pvt block (EXC_BAD_ACCESS). This didn’t happen on Linux.

Beidou PVT fixes not available in macOS until finding the root cause.
2019-02-18 22:29:50 +01:00
Carles Fernandez
0a1df17cca
Fix building in debug mode
Fixes for macOS
2019-02-17 13:36:13 +01:00
Carles Fernandez
b5c59ee6f7
Fix defects detected by Coverity Scan 2019-02-14 22:49:36 +01:00
Carles Fernandez
73b7341904
clang-tidy: apply readability-braces-around-statements plus code formatting
See http://releases.llvm.org/7.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/readability-braces-around-statements.html
Code formatting applied with:
  find ../src/ -iname *.h -o -iname *.cc | xargs clang-format -i
2019-02-11 21:13:02 +01:00
Carles Fernandez
dfc963ad86 clang-tidy: apply readability-else-after-return check
See https://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html
2019-02-11 15:53:50 +01:00
Carles Fernandez
b9c115bdf8 clang-tidy: apply modernize-use-using check 2019-02-11 13:13:06 +01:00
Carles Fernandez
75bd492d96
Change CMake target names to more meaningful ones, reflecting the code tree 2019-02-10 18:34:28 +01:00
Carles Fernandez
ce051e040f
Improve target design 2019-02-10 01:13:02 +01:00
Carles Fernandez
74950e9856
Set some compile definitions to private 2019-02-05 02:21:56 +01:00
Carles Fernandez
708b288e61
Clean CMake scripts 2019-02-04 22:44:45 +01:00
Carles Fernandez
9b94a4dec0 Add more imported targets to CMake scripts 2019-02-04 16:07:29 +01:00
Carles Fernandez
8ae72fe458
Update to modern CMake usage 2019-02-03 19:24:44 +01:00
Carles Fernandez
c561d7e799
Applying code formatting rules 2019-01-28 02:29:43 +01:00
Damian Miralles
2865e97b84 bds_b1i: Adding pvt computation with BeiDou B1I satellites 2018-12-28 19:01:22 -06:00
Damian Miralles
0c4b8b25f1 bds_b1i: Adding new tel dec block structure 2018-12-23 12:51:28 -06:00
Damian Miralles
42b506d0bb bds b1i: Merging latest changes from upstream/next 2018-12-18 15:55:36 -06:00
Carles Fernandez
432c6b9c70
Miscelaneous clang-tidy fixes 2018-12-14 02:14:43 +01:00
Damian Miralles
0d94f9e1b7 bds b1i: some bug corrections in the code 2018-12-13 07:57:42 -07:00
Carles Fernandez
38858dece6
Apply clang-tidy fix readability-non-const-parameter 2018-12-11 12:38:38 +01:00
Carles Fernandez
f351615ef9
Apply clang-tidy fix modernize-use-bool-literals 2018-12-11 12:08:54 +01:00
Carles Fernandez
5f79053d65
Sort includes automatically with clang-format
Order:
1.- Main header
2.- Local headers
3.- Third-party library headers
4.- System headers

each category sorted lexicographically
2018-12-09 22:00:09 +01:00
Carles Fernandez
8925ca7066
Fix building in Mac OS 2018-12-08 19:08:53 +01:00
Carles Fernandez
17260bbcea
Miscelaneous code improvements by clang-tidy 2018-12-08 18:49:31 +01:00
Carles Fernandez
81a4d24ae9
Use nullptr 2018-12-07 21:00:30 +01:00
Damian Miralles
352c82827e bds_b1i: enabling bds processing in rtklib processing 2018-12-05 15:08:22 -07:00
Carles Fernandez
327fec627c clang-tidy: apply readability-else-after-return fix (see https://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html) 2018-12-03 22:08:19 +01:00
Carles Fernandez
b5c0cc04e5 clang-tidy: apply modernize-raw-string-literal fix (see https://clang.llvm.org/extra/clang-tidy/checks/modernize-raw-string-literal.html) 2018-12-03 17:04:16 +01:00
Damian Miralles
e40999572f bds b1i: Bug fixes in navigation code
Fixes bugs with the conversion to rtklib standard from gnss-sdr.
2018-12-03 09:39:39 -06:00
Carles Fernandez
0d408a6024 clang-tidy: apply modernize-use-auto fix (see https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-auto.html) 2018-12-03 16:25:11 +01:00
Carles Fernandez
9d94910e1b
Fix building 2018-12-03 10:12:38 +01:00
Carles Fernandez
8e79786218
Fix building 2018-12-03 10:12:03 +01:00
Carles Fernandez
0a46cb1fe1
Use nullptr 2018-12-03 10:05:47 +01:00
Damian Miralles
8db3f21070 bds b11: Get latest changes and add bds functions in rtk module
Merge branch 'next' into bds_b1i. Also fixes multiple bugs with the
addition of bds b1i signals into code. Major changes where fixed and
code to support RINEX and RTCM is needed
2018-11-29 09:56:54 -06:00
Damian Miralles
0507febd7f bds b1i: quick fixes to b1i code, preparing for merge 2018-11-28 14:18:35 -06:00
Carles Fernandez
87d1413447
Make cmakelint happier 2018-11-24 18:40:34 +01:00
Carles Fernandez
4bdb8c3bc4 Fix computation of satellite elevation when using the GPS Almanac 2018-11-22 15:19:36 +01:00
Carles Fernandez
a59ffca8a1 Fix Galileo sats position computation from Almanac data 2018-11-22 11:59:49 +01:00
Carles Fernandez
b0ba246934
Apply some style rules to CMake scripts 2018-11-22 00:35:21 +01:00
Carles Fernandez
d77448cd76
Improve data types for almanac parameters 2018-11-07 22:25:09 +01:00
Javier
01a1954b15 Adding the Hotstart telecommand implementation to predict visible satellites for GPS and Galileo constellations 2018-11-05 17:53:53 +01:00
Damian Miralles
e22f8e57c1 beidou b1i: renaming objects of nav decoding 2018-10-22 15:12:50 -05:00
Damian Miralles
8c16d945f8 beidou b1i: Merging new changes and adding bug fixes to code 2018-10-22 14:16:38 -05:00
Carles Fernandez
4d2f7ef966 Fix computation of velocity in other bands than L1 2018-10-19 10:51:00 +02:00
Carles Fernandez
3d1318a70a
Improve PVT accuracy for GPS L1 2018-10-10 00:17:42 +02:00
Carles Fernandez
98f5507fbb
Remove redefined functions 2018-10-04 23:06:38 +02:00
Carles Fernandez
78c0b76cb9
Avoid use of GLOB for source and header files 2018-10-04 22:35:44 +02:00
Carles Fernandez
8d195e3259
Remove unused variables 2018-08-28 20:20:34 +02:00
Rodrigo Ventura
ad6bbee930 Fix build issue in OS X
Define of thread_t to pthread_t in rtklib.h was colliding with system
include in OS X. Not used elsewhere, so find&replaced with pthread_t.
2018-08-23 09:08:31 +01:00
Sergi Segura
fc98fa6afe cleaning code for gsoc 2018-08-12 23:58:16 +02:00
Carles Fernandez
5c80be5b9e
Set maximum Galileo PRN to 36 2018-07-28 18:32:40 +02:00
Carles Fernandez
5fc1e018fd
Clean source code, update to new gnss_synchro parameter name 2018-06-05 22:53:34 +02:00
Carles Fernandez
fd2e5d9a00
Improve initialization (fix clang warning) 2018-06-03 19:14:56 +02:00
Carles Fernandez
61e9e60477
Improve initializations (fix clang warning) 2018-06-03 14:48:31 +02:00
Carles Fernandez
559cc00bd7
Avoid dereference after null check 2018-05-21 04:05:13 +02:00
Carles Fernandez
f44508b53f
Make Coverity Scan happy 2018-05-19 23:13:50 +02:00
Carles Fernandez
7d4fe83fb6
Make Coverity Scan happy 2018-05-19 22:33:03 +02:00
Carles Fernandez
bf23bc1e3e
Make Coverity Scan happy 2018-05-19 20:56:27 +02:00
Carles Fernandez
2b7ccc11b9
Make Coverity Scan happy 2018-05-19 20:42:50 +02:00
Carles Fernandez
0f4306d0d9
Avoid uninitialized variable 2018-05-19 17:08:13 +02:00