mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-05-02 04:04:02 -04:00
DATV modulator: Sonar fix
This commit is contained in:
parent
7cf1a28b48
commit
6c347095e5
@ -305,8 +305,8 @@ int DATVModSettings::getDVBSDataBitrate() const
|
||||
{
|
||||
// For normal frames
|
||||
int codedBlockSize = 64800;
|
||||
int uncodedBlockSize;
|
||||
int bbHeaderBits = 80;
|
||||
int uncodedBlockSize = codedBlockSize + bbHeaderBits; // Yields a fec factor of 1.0 if no FEC applied
|
||||
// See table 5a in DVBS2 spec
|
||||
switch (m_fec)
|
||||
{
|
||||
@ -344,7 +344,7 @@ int DATVModSettings::getDVBSDataBitrate() const
|
||||
uncodedBlockSize = 38688;
|
||||
break;
|
||||
default:
|
||||
qDebug("DATVModSettings::getDVBSDataBitrate: Unsupported DVB-S2 code rate");
|
||||
qWarning("DATVModSettings::getDVBSDataBitrate: Unsupported DVB-S2 code rate");
|
||||
break;
|
||||
}
|
||||
fecFactor = (uncodedBlockSize-bbHeaderBits)/(float)codedBlockSize;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user