sync long: signal freq offset

This commit is contained in:
Bastian Bloessl
2016-05-31 15:36:40 +02:00
parent aa8d43508e
commit 9ca1f310f5
+3 -1
View File
@@ -82,6 +82,7 @@ int general_work (int noutput, gr_vector_int& ninput_items,
if(d_state == COPY) {
d_state = RESET;
}
d_freq_offset_short = pmt::to_double(d_tags.front().value);
}
}
@@ -121,7 +122,7 @@ int general_work (int noutput, gr_vector_int& ninput_items,
if(!rel) {
add_item_tag(0, nitems_written(0),
pmt::string_to_symbol("wifi_start"),
pmt::PMT_T,
pmt::from_double(d_freq_offset_short - d_freq_offset),
pmt::string_to_symbol(name()));
}
@@ -222,6 +223,7 @@ private:
int d_offset;
int d_frame_start;
float d_freq_offset;
double d_freq_offset_short;
gr_complex *d_correlation;
list<pair<gr_complex, int> > d_cor;