mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 08:05:49 +08:00
Adding V/D type 2 VCH reconstruction (currently disabled).
I didn't have the chance to test this yet, hence the WRITE_BIT line is commented out still. It's only a matter of getting the inter- leaving right now, though.
This commit is contained in:
@@ -405,6 +405,22 @@ void CYSFPayload::decodeVDMode2(unsigned char fn)
|
|||||||
errors++;
|
errors++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reconstruct only if we have bit errors. Technically we could even
|
||||||
|
// constrain it individually to the 5 VCH sections.
|
||||||
|
if(errors)
|
||||||
|
{
|
||||||
|
// Scramble
|
||||||
|
for (unsigned int i = 0U; i < 13U; i++)
|
||||||
|
vch[i] ^= WHITENING_DATA[i];
|
||||||
|
|
||||||
|
// Interleave
|
||||||
|
for(unsigned int i = 0U; i < 104U; i++) {
|
||||||
|
unsigned int n = INTERLEAVE_TABLE_26_4[i];
|
||||||
|
bool s = READ_BIT1(m_data, i);
|
||||||
|
//WRITE_BIT1(m_data, offset+n, s);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LogMessage("YSF, V/D Mode 2, Repetition FEC %u/270 (%.1f%%)", errors, float(errors) / 270.0F);
|
LogMessage("YSF, V/D Mode 2, Repetition FEC %u/270 (%.1f%%)", errors, float(errors) / 270.0F);
|
||||||
|
|||||||
Reference in New Issue
Block a user