35. Roadmap

This companion is written slowly, one chapter at a time, and every chapter is chosen by one question: where does C++ let us do a PySDR topic differently, not just transliterate the Python? This page collects the answers we have found so far, chapter by chapter, and the order in which we plan to write them up.

Idea Map: PySDR Chapter by Chapter

PySDR chapter

The C++ angle

Frequency Domain

fftshift as std::rotate, compile-time windows with their correction factors, PySDR’s recursive FFT as a template, FFTW plans as RAII objects, a spectrogram as an std::mdspan, streaming Welch (done in The FFT and the Spectrogram).

IQ Files and SigMF

Memory-mapped SigMF recordings as std::span views, typed sample formats, std::expected errors (done in IQ Files Without Copies, and SigMF).

Noise and dB

<random> engines vs. distributions, reproducible Gaussian noise, typed-SNR complex AWGN, Welford statistics, GNU Radio’s fast noise source (done in Noise, Random Numbers and Statistics).

Digital Modulation

Gray-coded constellations as compile-time tables (done in Compile-Time DSP: Filters, Tables and Constellations); constellations as types with O(1) slicers, soft demapping, differential coding as static_asserts, EVM, and a complete coded QPSK link (done in Digital Modulation, End to End).

Pulse Shaping

The raised cosine’s \(0/0\) handled exactly (Compile-Time DSP: Filters, Tables and Constellations); polyphase interpolator, RRC and ISI at compile time, eye diagram as an std::mdspan view (done in Pulse Shaping and the Eye Diagram).

Synchronization

Timing recovery with a compile-time polyphase filter bank (done in Timing Recovery with a Compile-Time Filter Bank); the Costas loop (done in Feedback Loops: the Costas Loop).

Detection

GPS C/A codes at compile time, popcount correlation, acquisition (done in Spreading Codes: GPS C/A Codes at Compile Time); CFAR with prefix and running sums and the real-time packet detector as one streaming object (done in CFAR and Real-Time Packet Detection); frequency-offset-resilient correlators and the Zadoff-Chu ridge (done in Correlating Under Frequency Offset).

Channel Coding

Hamming codes from PySDR’s rule with compile-time proofs, SECDED, a convolutional code as a type and a soft/hard Viterbi decoder cross-checked with GNU Radio (done in Channel Coding); a quasi-cyclic LDPC code built and checked by the compiler, sum-product, min-sum and fixed-point layered decoders against gr-fec (done in LDPC Codes: Messages Live on Edges).

Filters

FIR storage and fast convolution (done in FIR Filters in C++); IIR filters, subnormals, biquads vs direct form, compile-time Butterworth and stability tests (done in IIR Filters and Denormals).

RDS

Computed code tables and a std::variant state machine (done in Bits and State Machines: Decoding RDS); the complete receiver from IQ samples to RadioText (done in A Complete Receiver).

Multipath Fading

Rayleigh fading as vectorized rotators, checked against Rayleigh theory; tapped delay line (done in Multipath Fading as a Channel Object); OFDM transmitter and receiver (done in OFDM: Transmitter and Receiver).

Cyclostationary Processing

The CAF as one FFT per lag, frequency smoothing at the kept outputs only, a streaming detector for a known cyclic feature, the FFT accumulation method with batched plans and exact phase factors (done in Cyclostationary Processing).

DOA / Beamforming

Array size as a template parameter, streaming covariance, MVDR by Cholesky, MUSIC with a Jacobi eigensolver (done in Beamforming and Direction of Arrival); exact null steering at compile time, LMS, NLMS and sample-matrix inversion (done in Null Steering and LMS).

TDOA

Sub-sample peak estimators against GNU Radio’s corr_est_cc, GCC weightings as policies, Newton on the interpolated correlation, positioning in pseudo-range form, GDOP from the same matrix (done in TDOA: Delays, Peaks and Positions); joint TDOA/FDOA with the cross-ambiguity function (done in Delay and Doppler: the Ambiguity Function).

Real-time GUI (PyQt)

The lock-free queue between DSP and GUI threads (done in Threads and Lock-Free Queues); a waterfall with SDL3 that sees every sample, commands as a std::variant, a headless pixel test (done in Real-Time Display: Two Threads, No Waiting).

SDR Frameworks

GNU Radio blocks in C++ (done in Writing a GNU Radio Block in C++); tags, message ports and a rate-changing general_work() block, tested under every call size (done in Tags, Messages and Bursts in GNU Radio).

Link Budgets

Units in the type system (done in Decibels with a Dimension: a Link Budget the Compiler Checks).

What Comes Next

The fifth round (tags and message ports, LDPC, null steering and LMS, joint TDOA/FDOA, the FFT accumulation method) is written. What is still open, with the C++ angle we would take:

  1. GNU Radio 4 (SDR Frameworks). PySDR’s chapter shows an FM receiver in GR4’s release candidate. The sync detector of Tags, Messages and Bursts in GNU Radio as a GR4 block, whose ports and parameters are C++ types checked at compile time, against the GR3 version.

  2. Geolocation from TDOA and FDOA (TDOA). Two moving sensors locating a fixed emitter from the delay and Doppler of Delay and Doppler: the Ambiguity Function: the Gauss-Newton solver of TDOA: Delays, Peaks and Positions with a Doppler residual.

  3. LDPC across the lifting size (Channel Coding). The \(Z\) checks of a quasi-cyclic layer share no variable, so a layered decoder can process them in SIMD lanes; the book’s 8-bit records fit that well.

  4. The strip spectral correlation analyzer (Cyclostationary). PySDR mentions the SSCA as the frequency-smoothing counterpart of the FAM; one FFT stage per strip as a batched plan.

If you would like a particular PySDR chapter covered next, or you have an idea for a better C++ angle on one of them, that is exactly the kind of feedback this book is built on.