mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-07 16:34:45 -04:00
ChirpChat demod: implemented FT decoding
This commit is contained in:
+10
@@ -2566,8 +2566,14 @@ int FT8::decode(const float ll174[], int a174[], FT8Params& _params, int use_osd
|
||||
if (OSD::check_crc(a174)) {
|
||||
// success!
|
||||
return 1;
|
||||
} else {
|
||||
comment = "CRC fail";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
comment = "LDPC fail";
|
||||
}
|
||||
|
||||
if (use_osd && _params.osd_depth >= 0 && ldpc_ok >= _params.osd_ldpc_thresh)
|
||||
{
|
||||
@@ -2582,6 +2588,10 @@ int FT8::decode(const float ll174[], int a174[], FT8Params& _params, int use_osd
|
||||
OSD::ldpc_encode(oplain, a174);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
comment = "OSD fail";
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user