Commit Graph

11 Commits

Author SHA1 Message Date
Carles Fernandez f9911cbc3f
Fix lintian warning very-long-line-length-in-source-file (raised by Lintian v2.110.0)
Rationale:
The source file includes a line length that is well beyond the normally human made code line length.
This very long line length does not allow Lintian to do correctly some source file checks.
This line could also be the result of some text injected by a computer program, and thus could lead to FTBFS bugs.
Last but not least, long line in source code could be used to obfuscate the source code and to hide stuff like backdoors or security problems.
2021-10-29 14:26:55 +02:00
Carles Fernandez 38cffe480b
Make ASAN compilation mode happy: fill d_genpoly_index vector in constructor 2021-09-23 18:08:12 +02:00
Carles Fernandez 531ca63398
Make the code more portable
Avoid arrays with variable length, replace them by std::vector
2021-09-17 13:55:09 +02:00
Carles Fernandez 3bc2c738c8
Implement FEC2 Erasure Correction in Galileo E1B INAV message
This feature is configurable, disabled by default.

Added a benchmark for the Reed Solomon decoder.

Make the RS decoder to accept both shortened or unshortened codes
2021-04-19 13:26:46 +02:00
Carles Fernandez a209bcc979 Clean the constructor 2021-04-01 14:29:46 +02:00
Carles Fernandez 5cd1955dc0 Add check of number of erasures, remove unused parameter in private method 2021-04-01 13:21:11 +02:00
Carles Fernandez a32ea2ab9c Remove redundant check 2021-04-01 12:53:28 +02:00
Carles Fernandez 149c26b971 Expand ReedSolomon class to shortened codes. Add conf parameters for Galileo E1B RS encoding/decoding and the corresponding unit tests 2021-04-01 10:22:24 +02:00
Carles Fernandez e262dfc315 Implement HAS message page decoding
Signed-off-by: Carles Fernandez <carles.fernandez@gmail.com>
2021-03-28 13:07:50 +02:00
Carles Fernandez c67ac1247f
Add optional erasure positions to RS decoder 2021-03-26 12:40:35 +01:00
Carles Fernandez aeb6a0cd84
Add Reed Solomon encoder and decoder class 2021-03-25 14:53:18 +01:00