summaryrefslogtreecommitdiff
path: root/gr-digital/lib/costas_loop_cc_impl.h
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2019-12-21 17:06:04 +0000
committerMartin Braun <martin.braun@ettus.com>2020-01-06 15:38:02 -0800
commit67f21336724326c59948a3344a4d30db242809de (patch)
treef333d4dd5f4ab9fdaeb48723de68d884ae38e3c3 /gr-digital/lib/costas_loop_cc_impl.h
parentbf59d95c1a6920af76309ec23f6b10a903b7689e (diff)
gr-digital: Add more const
Diffstat (limited to 'gr-digital/lib/costas_loop_cc_impl.h')
-rw-r--r--gr-digital/lib/costas_loop_cc_impl.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-digital/lib/costas_loop_cc_impl.h b/gr-digital/lib/costas_loop_cc_impl.h
index d970a97c30..87655a44cf 100644
--- a/gr-digital/lib/costas_loop_cc_impl.h
+++ b/gr-digital/lib/costas_loop_cc_impl.h
@@ -32,7 +32,7 @@ namespace digital {
class costas_loop_cc_impl : public costas_loop_cc
{
private:
- int d_order;
+ const int d_order;
float d_error;
float d_noise;
@@ -85,8 +85,9 @@ private:
*/
float phase_detector_snr_2(gr_complex sample) const; // for BPSK
-
- float (costas_loop_cc_impl::*d_phase_detector)(gr_complex sample) const;
+ typedef float (costas_loop_cc_impl::*d_phase_detector_t)(gr_complex sample) const;
+ static d_phase_detector_t choose_phase_detector(int order, bool use_snr);
+ const d_phase_detector_t d_phase_detector;
public:
costas_loop_cc_impl(float loop_bw, int order, bool use_snr = false);