kopia lustrzana https://github.com/proto17/dji_droneid
Don't code while tired folks - Sample extraction fix #2
This is the actual fix for the crashes that happen due to walking off the edge of the burst arraygr-droneid-3.8
rodzic
f8bde33203
commit
967ba42b66
|
@ -43,7 +43,7 @@ namespace gr {
|
|||
gr::io_signature::make2(2, 2, sizeof(gr_complex), sizeof(float)),
|
||||
gr::io_signature::make(0, 0, 0)), fft_size_(round(sample_rate / CARRIER_SPACING)),
|
||||
long_cp_len_(round(sample_rate / 192000)), short_cp_len_(round(0.0000046875 * sample_rate)),
|
||||
extract_samples_count_((fft_size_ * 9) + (long_cp_len_ * 2) + (short_cp_len_ * 7) + (fft_size_ * 2)){
|
||||
extract_samples_count_((fft_size_ * 11) + (long_cp_len_ * 2) + (short_cp_len_ * 7) + (fft_size_ * 2)){
|
||||
this->message_port_register_out(pmt::mp("pdus"));
|
||||
|
||||
buffer_.resize(extract_samples_count_);
|
||||
|
|
Ładowanie…
Reference in New Issue