mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-23 00:35:53 +08:00
Merge pull request #3 from Boromatic/patch-2
debugged encodeErrorCheck()
This commit is contained in:
@@ -268,6 +268,13 @@ void CBPTC19696::encodeExtractData(const unsigned char* in) const
|
|||||||
// Check each row with a Hamming (15,11,3) code and each column with a Hamming (13,9,3) code
|
// Check each row with a Hamming (15,11,3) code and each column with a Hamming (13,9,3) code
|
||||||
void CBPTC19696::encodeErrorCheck()
|
void CBPTC19696::encodeErrorCheck()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// Run through each of the 9 rows containing data
|
||||||
|
for (unsigned int r = 0U; r < 9U; r++) {
|
||||||
|
unsigned int pos = (r * 15U) + 1U;
|
||||||
|
CHamming::encode15113(m_deInterData + pos);
|
||||||
|
}
|
||||||
|
|
||||||
// Run through each of the 15 columns
|
// Run through each of the 15 columns
|
||||||
bool col[13U];
|
bool col[13U];
|
||||||
for (unsigned int c = 0U; c < 15U; c++) {
|
for (unsigned int c = 0U; c < 15U; c++) {
|
||||||
@@ -285,12 +292,6 @@ void CBPTC19696::encodeErrorCheck()
|
|||||||
pos = pos + 15U;
|
pos = pos + 15U;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run through each of the 9 rows containing data
|
|
||||||
for (unsigned int r = 0U; r < 9U; r++) {
|
|
||||||
unsigned int pos = (r * 15U) + 1U;
|
|
||||||
CHamming::encode15113(m_deInterData + pos);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Interleave the raw data
|
// Interleave the raw data
|
||||||
|
|||||||
Reference in New Issue
Block a user