diff options
author | Andy Walls <awalls.cx18@gmail.com> | 2019-01-21 19:18:39 -0500 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-02-17 11:12:54 -0800 |
commit | f863efb1a9d3f535f0b51647cab22ce08379a6be (patch) | |
tree | 79dc064c18bf89fd2a5afde0800b1dd976f0d54b /gr-digital/lib/clock_tracking_loop.h | |
parent | 3864d35f53a79bd201a1d1da4e7c30533793a6c9 (diff) |
gr-digital: Prevent the clock tracking loop from generating negative estimates
Under extreme circumstances of the error signal input, the
clock tracking loop would allow the average clock period and
instantaneous clock period estimates to go negative, resulting in
an infinite loop when wrapping the clock phase.
Change clock period estimate limiting to happen when the estimates
are being formed, so that the negative, non-sensical values aren't
allowed to happen.
Diffstat (limited to 'gr-digital/lib/clock_tracking_loop.h')
-rw-r--r-- | gr-digital/lib/clock_tracking_loop.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-digital/lib/clock_tracking_loop.h b/gr-digital/lib/clock_tracking_loop.h index bc4aee1e6a..e8f0fe7989 100644 --- a/gr-digital/lib/clock_tracking_loop.h +++ b/gr-digital/lib/clock_tracking_loop.h @@ -415,12 +415,12 @@ namespace gr { * integrator portion of an IIR filter, so T_avg could potentially * wander very far during periods of noise/nonsense input. * - * This function should be called after advance_loop to keep the + * This function is called in advance_loop to keep the * estimated average clock period, T_avg, in the specified range. - * It is set as a separate method in case another way is desired as - * this is fairly heavy-handed. + * It is set as a separate virtual method in case another way is desired + * as this is fairly heavy-handed. */ - void period_limit(); + virtual void period_limit(); /******************************************************************* * SET FUNCTIONS |