Calling sequence

Parameters

tc:

Time constant, in samples

BL:

Loop bandwidth, normalized to sample frequency

eta:

Damping factor

lf:

Returned loop filter object

Description

The returned object can be used as a component in a carrier recovery process
(see carrier_rec_init), or directly with the process method.
A first order loop can recover and track the carrier phase (and the carrier frequency is supposed to be low compared to the symbol rate).
A second order loop can also recover and track the carrier frequency.

Example 1: First order loop filter

wf=wf_init('bpsk');lf=lf_init(1,tc=10);// First order loop filter// lf can be used now with carrier_rec_init