Monday, January 21, 2019

[Discuss-gnuradio] Moving average

The docs say that I need to set Scale to the inverse of the Length.
Ok, I interpret that as Length = 4000 and Scale = 1/4000
The docs here:
says that Scale is a float.

The discussion here clearly shows Scale working for values <1 and >0

If I enter a scale value by hand, like 0.2, then I see 200m which is what I expect.
If I enter a scale value as (1/5) then I see 0.
If I set a variable called "Scale" = (1/) and enter "Scale" in the Scale field of the moving average, it evaluates to 0.


When I enter the values in the block, it looks like scale is an int, which makes 1/4000 or indeed 1/(>1) problematic in that it always evaluates to zero, which kinda breaks things.
When I enter 1/2 I get "0"

When I hover over the field to enter Scale, I get Type Real.

I have the input and output of my integrator connected to a QT GUI Time Sink, and while the input waveform is what I expect, if I have any <1 Scale parameter, the output is 0.


Is something broken here, or is it me?
I've not had any problems using simple math in any of the other fields where appropriate.


--
K1FZY (WA4TPW) SK  9/29/37-4/13/15

No comments:

Post a Comment