1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

More Sonar fixes (2)

This commit is contained in:
f4exb 2024-07-22 00:34:26 +02:00
parent 189d5a6a01
commit 3799746ac0
2 changed files with 5 additions and 1 deletions

View File

@ -1938,6 +1938,10 @@ void FT8::soft_decode(const FFTEngine::ffts_t &c79, float ll174[])
// //
void FT8::soft_decode_mags(FT8Params& params, const std::vector<std::vector<float>>& mags_, int nbSymbolBits, float ll174[]) void FT8::soft_decode_mags(FT8Params& params, const std::vector<std::vector<float>>& mags_, int nbSymbolBits, float ll174[])
{ {
if (nbSymbolBits > 16) {
return;
}
std::vector<std::vector<float>> mags = convert_to_snr_gen(params, nbSymbolBits, mags_); std::vector<std::vector<float>> mags = convert_to_snr_gen(params, nbSymbolBits, mags_);
// statistics to decide soft probabilities. // statistics to decide soft probabilities.
// distribution of strongest tones, and // distribution of strongest tones, and

View File

@ -30,7 +30,7 @@ namespace ldpctool {
template <typename TYPE> template <typename TYPE>
class LDPCEncoder class LDPCEncoder
{ {
LDPCInterface *ldpc; LDPCInterface *ldpc = nullptr;
int N = 2; int N = 2;
int K = 1; int K = 1;
int R = 1; int R = 1;