Skip to content

Commit

Permalink
gr-digital: Fix MSK timing error detector (issue #3678).
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Foster <bistromath@gmail.com>
(cherry picked from commit d4897ce)
Signed-off-by: Jeff Long <willcode4@gmail.com>
  • Loading branch information
bistromath authored and willcode committed Mar 10, 2021
1 parent 40c04ca commit 01cafa7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions gr-digital/lib/timing_error_detector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ float ted_generalized_msk::compute_error_cf()
{
gr_complex u;

u = (d_input[0] * d_input[0] * conj(d_input[2] * d_input[2])) -
(d_input[1] * d_input[1] * conj(d_input[3] * d_input[3]));
u = (d_input[1] * d_input[1] * conj(d_input[5] * d_input[5])) -
(d_input[3] * d_input[3] * conj(d_input[7] * d_input[7]));

return gr::branchless_clip(u.real(), 3.0f);
}
Expand All @@ -344,8 +344,8 @@ float ted_generalized_msk::compute_error_ff()
{
float u;

u = (d_input[0].real() * d_input[0].real() * d_input[2].real() * d_input[2].real()) -
(d_input[1].real() * d_input[1].real() * d_input[3].real() * d_input[3].real());
u = (d_input[1].real() * d_input[1].real() * d_input[5].real() * d_input[5].real()) -
(d_input[3].real() * d_input[3].real() * d_input[7].real() * d_input[7].real());

return gr::branchless_clip(u, 3.0f);
}
Expand Down
2 changes: 1 addition & 1 deletion gr-digital/lib/timing_error_detector.h
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ class ted_generalized_msk : public timing_error_detector
*/
ted_generalized_msk()
: timing_error_detector(
TED_DANDREA_AND_MENGALI_GEN_MSK, 2, 4, false, false, constellation_sptr())
TED_DANDREA_AND_MENGALI_GEN_MSK, 4, 8, false, false, constellation_sptr())
{
}
~ted_generalized_msk(){};
Expand Down

0 comments on commit 01cafa7

Please sign in to comment.