More DMR Inversion fixes

More DMR Inversion fixes
--fix some issues regarding when to invert dibits
---still have random issue of frame syncing to voice type instead of data type immediately after voice ends in TDMA stereo when inverted, guessing the dibit buffer is storing non-inverted dibits causing this?
--code will need a round of cleanup once fully tested and going good inverted
This commit is contained in:
lwvmobile
2022-05-12 16:54:45 -04:00
committed by GitHub
parent 7d6c3dc67c
commit a848f9c0fe
4 changed files with 95 additions and 29 deletions

View File

@@ -52,7 +52,7 @@ processDMRdata (dsd_opts * opts, dsd_state * state)
//using the estimate_symbol method for the dmr_payload_p buffer causes sync
//issues with P25, so only do it when frame_p25p1 == 0, or -fr option
//temp fix to only use dmr_payload_p buffer when no inversion expected, otherwise use dibit_buf
if (opts->frame_p25p1 == 0 && opts->inverted_dmr == 0) //opts->frame_p25p1 == 0
if (opts->frame_p25p1 == 0 && opts->inverted_dmr == 0) //opts->frame_p25p1 == 0 && opts->inverted_dmr == 0
{
dibit_p = state->dmr_payload_p - 90;
}
@@ -293,7 +293,7 @@ processDMRdata (dsd_opts * opts, dsd_state * state)
}
if (opts->inverted_dmr == 1)
{
dibit = (dibit ^ 2);
//dibit = (dibit ^ 2);
}
if (state->dmr_stereo == 1)
{
@@ -391,7 +391,7 @@ processDMRdata (dsd_opts * opts, dsd_state * state)
}
if (opts->inverted_dmr == 1)
{
dibit = (dibit ^ 2);
//dibit = (dibit ^ 2);
}
if (state->dmr_stereo == 1)
{