Implements a PLL which locks to the input frequency and outputs the input signal mixed with that carrier.
input: stream of complex; output: stream of complex.
This PLL locks onto a [possibly noisy] reference carrier on the input and outputs that signal, downconverted to DC
All settings max_freq and min_freq are in terms of radians per sample, NOT HERTZ. The loop bandwidth determins the lock range and should be set around pi/200 – 2pi/100.
update the system gains from the loop bandwidth and damping factor
This function updates the system gains based on the loop bandwidth and damping factor of the system. These two factors can be set separately through their own set functions.
Keep the frequency between d_min_freq and d_max_freq.
This function keeps the frequency between d_min_freq and d_max_freq. If the frequency is greater than d_max_freq, it is set to d_max_freq. If the frequency is less than d_min_freq, it is set to d_min_freq.
This function should be called after advance_loop to keep the frequency in the specified region. It is set as a separate method in case another way is desired as this is fairly heavy-handed.
Returns the loop gain alpha.
Returns the loop gain beta.
Returns the loop damping factor.
Get the Costas loop’s frequency estimate.
Returns the loop bandwidth.
Get the Costas loop’s phase estimate.
Keep the phase between -2pi and 2pi.
This function keeps the phase between -2pi and 2pi. If the phase is greater than 2pi by d, it wraps around to be -2pi+d; similarly if it is less than -2pi by d, it wraps around to 2pi-d.
This function should be called after advance_loop to keep the phase in a good operating region. It is set as a separate method in case another way is desired as this is fairly heavy-handed.
Set the loop gain alpha.
Set’s the loop filter’s alpha gain parameter.
This value should really only be set by adjusting the loop bandwidth and damping factor.
Set the loop gain beta.
Set’s the loop filter’s beta gain parameter.
This value should really only be set by adjusting the loop bandwidth and damping factor.
Set the loop damping factor.
Set the loop filter’s damping factor to . The damping factor should be sqrt(2)/2.0 for critically damped systems. Set it to anything else only if you know what you are doing. It must be a number between 0 and 1.
When a new damping factor is set, the gains, alpha and beta, of the loop are recalculated by a call to update_gains().
Set the Costas loop’s frequency.
Set’s the Costas Loop’s frequency. While this is normally updated by the inner loop of the algorithm, it could be useful to manually initialize, set, or reset this under certain circumstances.
Set the loop bandwidth.
Set the loop filter’s bandwidth to . This should be between 2*pi/200 and 2*pi/100 (in rads/samp). It must also be a positive number.
When a new damping factor is set, the gains, alpha and beta, of the loop are recalculated by a call to update_gains().
Set the Costas loop’s phase.
Set’s the Costas Loop’s phase. While this is normally updated by the inner loop of the algorithm, it could be useful to manually initialize, set, or reset this under certain circumstances.
update the system gains from the loop bandwidth and damping factor
This function updates the system gains based on the loop bandwidth and damping factor of the system. These two factors can be set separately through their own set functions.
Implements a PLL which locks to the input frequency and outputs an estimate of that frequency. Useful for FM Demod.
input: stream of complex; output: stream of floats.
This PLL locks onto a [possibly noisy] reference carrier on the input and outputs an estimate of that frequency in radians per sample. All settings max_freq and min_freq are in terms of radians per sample, NOT HERTZ. The loop bandwidth determins the lock range and should be set around pi/200 – 2pi/100.
update the system gains from the loop bandwidth and damping factor
This function updates the system gains based on the loop bandwidth and damping factor of the system. These two factors can be set separately through their own set functions.
Keep the frequency between d_min_freq and d_max_freq.
This function keeps the frequency between d_min_freq and d_max_freq. If the frequency is greater than d_max_freq, it is set to d_max_freq. If the frequency is less than d_min_freq, it is set to d_min_freq.
This function should be called after advance_loop to keep the frequency in the specified region. It is set as a separate method in case another way is desired as this is fairly heavy-handed.
Returns the loop gain alpha.
Returns the loop gain beta.
Returns the loop damping factor.
Get the Costas loop’s frequency estimate.
Returns the loop bandwidth.
Get the Costas loop’s phase estimate.
Keep the phase between -2pi and 2pi.
This function keeps the phase between -2pi and 2pi. If the phase is greater than 2pi by d, it wraps around to be -2pi+d; similarly if it is less than -2pi by d, it wraps around to 2pi-d.
This function should be called after advance_loop to keep the phase in a good operating region. It is set as a separate method in case another way is desired as this is fairly heavy-handed.
Set the loop gain alpha.
Set’s the loop filter’s alpha gain parameter.
This value should really only be set by adjusting the loop bandwidth and damping factor.
Set the loop gain beta.
Set’s the loop filter’s beta gain parameter.
This value should really only be set by adjusting the loop bandwidth and damping factor.
Set the loop damping factor.
Set the loop filter’s damping factor to . The damping factor should be sqrt(2)/2.0 for critically damped systems. Set it to anything else only if you know what you are doing. It must be a number between 0 and 1.
When a new damping factor is set, the gains, alpha and beta, of the loop are recalculated by a call to update_gains().
Set the Costas loop’s frequency.
Set’s the Costas Loop’s frequency. While this is normally updated by the inner loop of the algorithm, it could be useful to manually initialize, set, or reset this under certain circumstances.
Set the loop bandwidth.
Set the loop filter’s bandwidth to . This should be between 2*pi/200 and 2*pi/100 (in rads/samp). It must also be a positive number.
When a new damping factor is set, the gains, alpha and beta, of the loop are recalculated by a call to update_gains().
Set the Costas loop’s phase.
Set’s the Costas Loop’s phase. While this is normally updated by the inner loop of the algorithm, it could be useful to manually initialize, set, or reset this under certain circumstances.
update the system gains from the loop bandwidth and damping factor
This function updates the system gains based on the loop bandwidth and damping factor of the system. These two factors can be set separately through their own set functions.
Implements a PLL which locks to the input frequency and outputs a carrier
input: stream of complex; output: stream of complex.
This PLL locks onto a [possibly noisy] reference carrier on the input and outputs a clean version which is phase and frequency aligned to it.
All settings max_freq and min_freq are in terms of radians per sample, NOT HERTZ. The loop bandwidth determins the lock range and should be set around pi/200 – 2pi/100.
update the system gains from the loop bandwidth and damping factor
This function updates the system gains based on the loop bandwidth and damping factor of the system. These two factors can be set separately through their own set functions.
Keep the frequency between d_min_freq and d_max_freq.
This function keeps the frequency between d_min_freq and d_max_freq. If the frequency is greater than d_max_freq, it is set to d_max_freq. If the frequency is less than d_min_freq, it is set to d_min_freq.
This function should be called after advance_loop to keep the frequency in the specified region. It is set as a separate method in case another way is desired as this is fairly heavy-handed.
Returns the loop gain alpha.
Returns the loop gain beta.
Returns the loop damping factor.
Get the Costas loop’s frequency estimate.
Returns the loop bandwidth.
Get the Costas loop’s phase estimate.
Keep the phase between -2pi and 2pi.
This function keeps the phase between -2pi and 2pi. If the phase is greater than 2pi by d, it wraps around to be -2pi+d; similarly if it is less than -2pi by d, it wraps around to 2pi-d.
This function should be called after advance_loop to keep the phase in a good operating region. It is set as a separate method in case another way is desired as this is fairly heavy-handed.
Set the loop gain alpha.
Set’s the loop filter’s alpha gain parameter.
This value should really only be set by adjusting the loop bandwidth and damping factor.
Set the loop gain beta.
Set’s the loop filter’s beta gain parameter.
This value should really only be set by adjusting the loop bandwidth and damping factor.
Set the loop damping factor.
Set the loop filter’s damping factor to . The damping factor should be sqrt(2)/2.0 for critically damped systems. Set it to anything else only if you know what you are doing. It must be a number between 0 and 1.
When a new damping factor is set, the gains, alpha and beta, of the loop are recalculated by a call to update_gains().
Set the Costas loop’s frequency.
Set’s the Costas Loop’s frequency. While this is normally updated by the inner loop of the algorithm, it could be useful to manually initialize, set, or reset this under certain circumstances.
Set the loop bandwidth.
Set the loop filter’s bandwidth to . This should be between 2*pi/200 and 2*pi/100 (in rads/samp). It must also be a positive number.
When a new damping factor is set, the gains, alpha and beta, of the loop are recalculated by a call to update_gains().
Set the Costas loop’s phase.
Set’s the Costas Loop’s phase. While this is normally updated by the inner loop of the algorithm, it could be useful to manually initialize, set, or reset this under certain circumstances.
update the system gains from the loop bandwidth and damping factor
This function updates the system gains based on the loop bandwidth and damping factor of the system. These two factors can be set separately through their own set functions.
PN code sequential search correlator.
Receives complex baseband signal, outputs complex correlation against reference PN code, one sample per PN code period
inverse of gr_simple_framer (more or less)
add sync field, seq number and command field to payload