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 array
gr-droneid-3.8
proto17 2022-05-03 22:44:43 -04:00 zatwierdzone przez GitHub
rodzic f8bde33203
commit 967ba42b66
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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_);