From f4403121a13581129a92ac543565e5a2256f76f5 Mon Sep 17 00:00:00 2001 From: Brumi-2021 Date: Sat, 1 Jan 2022 12:26:35 +0100 Subject: [PATCH] Minor improvementes to the previous PR #329 AM-SSB-DSB Mic Functionality App --- firmware/baseband/dsp_modulate.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/baseband/dsp_modulate.cpp b/firmware/baseband/dsp_modulate.cpp index cc9644bf..31dd3f85 100644 --- a/firmware/baseband/dsp_modulate.cpp +++ b/firmware/baseband/dsp_modulate.cpp @@ -62,8 +62,8 @@ void SSB::execute(const buffer_s16_t& audio, const buffer_c8_t& buffer) { //default: break; //} - i *= 64.0f; - q *= 64.0f; + i *= 256.0f; // Original 64.0f, now x 4 (+12 dB's SSB BB modulation) + q *= 256.0f; // Original 64.0f, now x 4 (+12 dB's SSB BB modulation) switch (mode) { case Mode::LSB: re = q; im = i; break; case Mode::USB: re = i; im = q; break; @@ -123,9 +123,9 @@ void AM::execute(const buffer_s16_t& audio, const buffer_c8_t& buffer) { } q = sample / 32768.0f; - q *= 64.0f; + q *= 256.0f; // Original 64.0f,now x4 (+12 dB's BB_modulation in AM & DSB) switch (mode) { - case Mode::AM: re = q + 20; im = q + 20; break; + case Mode::AM: re = q + 80; im = q + 80; break; // Original DC add +20_DC_level=carrier,now x4 (+12dB's AM carrier) case Mode::DSB: re = q; im = q; break; default: break; }