Skip to content

Conversation

KrxGu
Copy link

@KrxGu KrxGu commented Jul 30, 2025

Analog‑blocks port – status snapshot

(tick = already landed in this PR, blank = left for follow‑up)

✔︎ ? legacy header(s) role in flow‑graph modern location
☑️ sig_source_, noise_source_, pll_carriertracking_cc.h sources / noise blocks/basic/include/gnuradio-4.0/basic/SignalGenerator.hpp (merged)
☑️ frequency_modulator_fc.h FM TX FrequencyMod.hpp
☑️ quadrature_demod_cf.h quadrature FM RX QuadratureDemod.hpp
☑️ fmdet_cf.h alt. FM detector FmDet.hpp
pll_freqdet_cf.h PLL FM detector PllFreqDet.hpp (next)
☑️ — (Python‑only in 3.x) AM envelope demod AmDemod.hpp
☑️ phase_modulator_fc.h PM TX PhaseModulator.hpp
☑️ AGC & misc (agc*, squelch, etc.) gain / helpers postpone( completed Agc.hpp & Agc2.hpp)

Tests & CMake targets for every ☑️ header are included; commits are DCO‑signed.

KrxGu and others added 8 commits July 3, 2025 05:29
* adds processOne helpers, bulk publishing fix
* updates block-local CMake to relax warning flags
* adds qa_Analog Boost.UT test suite

Signed-off-by: KrxGu <[email protected]>
This adds working GR‑4 replacements for the classic GR‑3.x
  • frequency_modulator_fc   → FrequencyMod.hpp
  • phase_modulator_fc       → PhaseModulator.hpp
  • quadrature_demod_cf      → QuadratureDemod.hpp
  • fmdet_cf                 → FmDet.hpp
  • analog_am_demod_cf (new) → AmDemod.hpp

Each block comes with a Boost.UT unit‑test and the analog/test
CMake files are updated accordingly.

Signed-off-by: KrxGu <[email protected]>
These files belong to an earlier helpers‑merge and should not be part
of the AM/FM/PM block port.  Also remove their CMake targets.

Signed-off-by: KrxGu <[email protected]>
* New headers: Agc.hpp, Agc2.hpp
* Added tests: qa_Agc.cpp, qa_Agc2.cpp
* Updated CMakeLists for library and test targets

Signed-off-by: KrxGu <[email protected]>
Fix library linking and warning suppressions to resolve CI build failures.

Signed-off-by: Krish Gupta <[email protected]>
@KrxGu KrxGu force-pushed the port-analog-block branch from 1209224 to 5345c47 Compare August 8, 2025 04:24
KrxGu added 2 commits August 8, 2025 21:07
Replace std::fabs with std::abs for complex number magnitude calculation
in Agc and Agc2 blocks. std::fabs is not overloaded for complex types,
causing CI compilation failures in clang builds.

Fixes compilation errors in generated AGC blocks when used with std::complex<float>.

Signed-off-by: KrxGu <[email protected]>
- Add explicit type aliases for AgcCC, AgcFF, Agc2CC, Agc2FF
- Move type aliases outside test functions for better CI compatibility
- Fix template resolution issues in clang/emcc CI environments
- Ensure proper namespace resolution for gr::blocks::analog::Agc types

Signed-off-by: Krish Gupta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant