Hello,
I am using GNU Radio version 3.6.5 and trying to write a block to calculate average of 5 samples. I want to produce one average output corresponding to 5 input samples. I am using set_history(5) to remember previous data. I used gr_modtool script of type decimator to create file.
eg. for Vector source {1,2,3,4,5,6,7,8,9,10}, it should generate average {3,8}. Instead I am getting {.2, .6}.
My requirement is to produce output, it should take 5 inputs. Please suggest me where I need to do modification.
In function gr_sync_decimator("average",
gr_make_io_signature(1, 1, sizeof(float)),
gr_make_io_signature(1, 1, sizeof(float)), 5)
what role value 5 will play?
Below is code snapshot.