Add V/D Mode 1 AMBE FEC.

This commit is contained in:
Jonathan Naylor
2016-03-01 07:19:44 +00:00
parent e91b8b9a90
commit b9b8cf12f8
3 changed files with 118 additions and 6 deletions

View File

@@ -255,12 +255,7 @@ void CYSFPayload::decodeHeader()
void CYSFPayload::decodeVDMode1(unsigned char fn)
{
// Regenerate the AMBE FEC
unsigned int errors = 0U;
unsigned char* p = m_data + 9U;
for (unsigned int i = 0U; i < 5U; i++) {
errors += m_fec.regenerateDMR(p);
p += 9U;
}
unsigned int errors = m_fec.regenerateYSF1(m_data);
LogMessage("YSF, V/D Mode 1, AMBE FEC %u/235 (%.1f%%)", errors, float(errors) / 235.0F);