Robin Getz
55e13063ea
ft8: replace temporary malloc buffer with std::vector
...
Replace the temporary CRC working buffer in `LDPC::ft8_crc()` with a
`std::vector<int>`.
The vector is value-initialized, preserving the existing zero-padding
behavior, while `std::memcpy()` copies the input message into the front
of the buffer. This removes the manual `malloc()`/`free()` pair, simplifies
the implementation, and uses RAII for temporary storage.
This change also addresses a cppcheck warning about a possible null pointer
dereference following malloc() failure. If memory allocation now fails,
std::vector will throw std::bad_alloc rather than returning a null pointer
that would be dereferenced. The algorithm and behavior are otherwise
unchanged.
Signed-off-by: Robin Getz <rgetz503@gmail.com >
2026-07-21 20:01:53 -04:00
f4exb
e98b4bdeb1
FT8 demod: more code linting
2026-03-15 00:18:52 +01:00
f4exb
c32aa8001a
FT8 demod: corrected FT4 second tone frequency
2026-03-14 23:24:12 +01:00
f4exb
9eef3d2437
FT8 demod: set all rates to float in FT4
2026-03-14 22:28:33 +01:00
f4exb
d0ad1ae413
FT8 demod: Sonar fixes (2)
2026-03-14 03:46:48 +01:00
f4exb
b09e8df343
FT8 demod: Sonar fixes
2026-03-14 02:16:04 +01:00
f4exb
7da837f854
FT8 demod: fix duplicated code (2)
2026-03-13 19:06:49 +01:00
f4exb
81f7d2ff99
FT8 demod: fix duplicated code (1)
2026-03-13 18:37:09 +01:00
f4exb
71d6208fe9
Removed redundant functions between FT8 and FT4
2026-03-12 21:26:35 +01:00
f4exb
26cfbac9b7
FT8 demod: removed experimental FT4 decoder
2026-03-09 01:26:35 +01:00
f4exb
e64c407628
FT4 demod: added a subtract_edge_symbols parameter to take the ramp up/down symbol (for completeness but no significant improvement)
2026-03-08 23:33:25 +01:00
f4exb
40fc335774
FT4 demod: adjust SNR to more closely match WSJT figures
2026-03-08 22:24:00 +01:00
f4exb
c42f4a04cb
FT4 deomod: fixes
2026-03-08 21:40:07 +01:00
f4exb
76121cf789
FT4 demod: fixed expected test results and SNR calculation
2026-03-08 02:54:14 +01:00
f4exb
2e0801e57b
FT4 decoder: nearly all decode OK
2026-03-08 02:08:57 +01:00
f4exb
fbfa04a06d
FT4 demod: copy original FT8 worker to FT4. Isolate AI generated classes
2026-03-07 11:57:08 +01:00
f4exb
724a9a0f83
FT4 demod: put FT4Worker in its own files
2026-03-05 21:18:13 +01:00
f4exb
31a1fb8f9e
FT4 decoder: use FFT (3)
2026-03-04 22:27:06 +01:00
f4exb
831f0e16d3
FT4 decoder: use FFT (2)
2026-03-04 22:13:14 +01:00
f4exb
285c957718
FT4 decoder: use FFT (1)
2026-03-04 20:55:35 +01:00
f4exb
6005ad83f3
scaffold a new FT4 decoder based on FT8 decoder with multi threaded approach
2026-03-03 20:59:42 +01:00
f4exb
05b9b499b1
FT8: fixed CRC build
2026-01-25 00:33:21 +01:00
f4exb
77b2b815b8
Replace sprintf by snprintf wherever possible
2025-04-21 14:34:53 +02:00
Edouard Griffiths
f522d88fc5
Merge pull request #2252 from srcejon/freq_scanner
...
Update CMakeLists.txt to allow static libraries to be built
2024-09-13 21:07:04 +02:00
srcejon
1df07b21ae
Update CMakeLists.txt to allow static libraries to be built, as well as shared.
...
Add BUILD_BENCH, BUILD_SHARED_LIBS, ENABLE_AARONIARTSA and ENABLE_METIS options.
2024-09-11 20:16:40 +01:00
DreamNik
f694ba04b8
Fix compilation warnings and errors
2024-09-05 13:37:46 +03:00
f4exb
0a9a2ba136
More Sonar fixes (3)
2024-07-22 04:25:43 +02:00
f4exb
3799746ac0
More Sonar fixes (2)
2024-07-22 00:34:26 +02:00
f4exb
189d5a6a01
More Sonar fixes
2024-07-21 23:15:32 +02:00
f4exb
28262ca5fb
More Sonar bug fixes
2024-07-21 14:20:48 +02:00
Daniele Forsi
4241f01376
Fix typos in cpp files
2024-07-10 23:06:38 +02:00
Daniele Forsi
e56908b0c6
Fix typos in include files
2024-07-10 23:06:38 +02:00
f4exb
cd7f0c16c4
FT8: implement Gray decoding when decoding from magnitudes
2024-04-06 11:01:21 +02:00
f4exb
3c9f74aeb5
ChirpChat demod: implemented FT decoding
2024-04-06 11:01:21 +02:00
f4exb
ba075bcf66
FT8: zero and one symbol indexes matrices optoimization
2024-04-06 11:01:21 +02:00
f4exb
8e77ad01ad
FT8: added soft decode on magnitudes and genaralize to any number of bits per symbol
2024-04-03 14:01:45 +02:00
f4exb
8f33bad363
Fix MXVC boost multiprecision issue
2024-03-28 22:12:27 +01:00
f4exb
2e9fc9db64
FT8: add encoding support to library and added more tests
2024-03-28 15:15:48 +01:00
f4exb
b120f9cb01
Rewriting of copyright notices for all but plugins (done), sdrbase, sdrgui. Part of #1893
2023-11-19 13:43:10 +01:00
f4exb
2385cdde7c
FT8 support: corrected possible code glitch
2023-02-03 10:37:03 +01:00
f4exb
41a2de1401
FT8 support: code reorganization (2)
2023-01-31 20:21:47 +01:00
f4exb
33156b9f66
FT8 support: code reformatting
2023-01-30 23:58:10 +01:00
f4exb
60795d8f37
FT8 demod: OSD optimization and fixes
2023-01-29 23:20:58 +01:00
f4exb
2299e5d115
FT8 demod: OSD demodulation callsign verification
2023-01-29 19:27:45 +01:00
f4exb
f63f1270ba
FT8 demod: support for types 0.5 and 5 messages
2023-01-28 22:45:07 +01:00
f4exb
5980dda8a9
FT8 demod: added message type column im nessages table
2023-01-28 12:29:58 +01:00
f4exb
e265ddf887
FT8 support and demod: added unpacking of DXpedition mesages. Added message type in FT8Message
2023-01-28 11:39:44 +01:00
f4exb
a86cc53945
FT8 demod: make OSD optional and log OSD information
2023-01-28 08:58:50 +01:00
f4exb
c5a9f5fe12
FT8 support: optimize FFT buffers and plan allocation
2023-01-25 16:30:40 +01:00
f4exb
c1c64b23e4
FT8 support: plan destructor
2023-01-25 14:37:53 +01:00