sync long: signal freq offset
This commit is contained in:
+3
-1
@@ -82,6 +82,7 @@ int general_work (int noutput, gr_vector_int& ninput_items,
|
|||||||
if(d_state == COPY) {
|
if(d_state == COPY) {
|
||||||
d_state = RESET;
|
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) {
|
if(!rel) {
|
||||||
add_item_tag(0, nitems_written(0),
|
add_item_tag(0, nitems_written(0),
|
||||||
pmt::string_to_symbol("wifi_start"),
|
pmt::string_to_symbol("wifi_start"),
|
||||||
pmt::PMT_T,
|
pmt::from_double(d_freq_offset_short - d_freq_offset),
|
||||||
pmt::string_to_symbol(name()));
|
pmt::string_to_symbol(name()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -222,6 +223,7 @@ private:
|
|||||||
int d_offset;
|
int d_offset;
|
||||||
int d_frame_start;
|
int d_frame_start;
|
||||||
float d_freq_offset;
|
float d_freq_offset;
|
||||||
|
double d_freq_offset_short;
|
||||||
|
|
||||||
gr_complex *d_correlation;
|
gr_complex *d_correlation;
|
||||||
list<pair<gr_complex, int> > d_cor;
|
list<pair<gr_complex, int> > d_cor;
|
||||||
|
|||||||
Reference in New Issue
Block a user