Files
mayhem-firmware/firmware/application
Mo b8ad44c431 Opt-in channel-power squelch for AM audio RX (#3315)
* AM: add opt-in channel-power squelch for AM audio RX

Add an SDR++-style power squelch on the complex channel signal for the
Analog Audio RX app in AM modes (DSB/SSB/CW). The squelch measures the
mean channel power, converts it to dBFS, and mutes the demodulated audio
when the signal is below a user-set threshold. Being carrier-based it
keys on the AM carrier (e.g. airband/ATC) rather than on audio-band
noise, which the existing FM squelch could not do for AM.

A new 'SQ' field (0-99, 0 = off) is added to the AM options view and is
persisted per app via app_settings. Default is 0, so existing AM
behaviour is unchanged unless the user enables it. Threshold maps 1..99
to -80..-20 dBFS.

Touches: message (AMConfigureMessage.squelch_level), baseband_api
(AMConfig::apply), receiver_model (am_squelch_level get/set),
app_settings (persistence), proc_am_audio (DSP), analog_audio_app (UI).

* Refactor audio power calculation to use magnitude squared

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-09-14 20:54:54 +02:00
..
2026-07-10 21:37:41 +02:00
2026-08-08 21:47:54 +02:00
2026-01-08 10:34:05 +01:00
2023-05-19 08:16:05 +12:00
2023-05-19 08:16:05 +12:00
2023-05-19 08:16:05 +12:00
2026-08-21 19:56:54 +02:00
2026-08-08 21:47:54 +02:00
2026-07-10 21:37:41 +02:00
2023-10-02 20:19:22 +02:00
2023-10-02 20:19:22 +02:00
2026-06-19 07:48:55 +02:00
2025-12-14 11:26:21 +01:00
2023-05-19 08:16:05 +12:00
2023-05-19 08:16:05 +12:00
2023-07-14 18:46:39 -07:00
2026-06-15 19:28:47 +02:00
2026-06-15 19:28:47 +02:00
2026-02-24 11:23:41 +01:00
2026-05-09 12:23:43 +02:00
2025-12-14 11:26:21 +01:00
2024-11-22 09:54:34 +01:00
2026-05-10 00:08:05 +02:00
2025-04-11 10:46:04 +00:00
2026-06-12 22:15:44 +02:00
2023-12-17 17:20:35 +01:00
2024-11-08 11:46:27 +01:00
2024-11-08 11:46:27 +01:00
2023-06-17 22:01:46 +02:00
2026-02-24 11:23:41 +01:00
2026-01-30 17:18:13 +01:00
2023-05-19 08:16:05 +12:00
2026-02-12 12:41:12 +01:00
2026-01-16 09:57:45 +01:00
2026-01-16 09:57:45 +01:00
2023-05-19 08:16:05 +12:00
2023-03-21 19:18:38 +01:00
2026-06-19 07:48:55 +02:00
2024-11-19 17:16:37 +01:00
2024-11-19 17:16:37 +01:00
2026-07-10 21:37:41 +02:00
2023-05-19 08:16:05 +12:00
2023-05-19 08:16:05 +12:00
2026-02-24 11:23:41 +01:00
2023-08-02 21:59:26 +02:00
2023-05-19 08:16:05 +12:00
2026-07-02 10:05:34 +02:00
2026-07-02 10:05:34 +02:00
2025-11-26 19:13:21 +01:00
2023-05-19 08:16:05 +12:00
2023-05-19 08:16:05 +12:00
2023-05-19 08:16:05 +12:00
2023-05-19 08:16:05 +12:00
2026-04-30 15:00:19 +02:00
2026-02-24 11:23:41 +01:00
2025-09-01 11:50:46 +02:00
2026-02-24 11:23:41 +01:00
2024-11-22 09:54:34 +01:00
2024-11-22 09:54:34 +01:00
2026-06-19 07:48:55 +02:00
2026-08-21 19:56:54 +02:00
2026-04-30 15:00:19 +02:00
2026-04-30 15:00:19 +02:00
2026-04-30 15:00:19 +02:00
2023-05-19 08:16:05 +12:00
2023-12-17 17:20:35 +01:00
2023-12-17 17:20:35 +01:00
2026-02-24 11:23:41 +01:00
2026-08-21 19:56:54 +02:00
2024-11-08 11:46:27 +01:00
2026-05-30 01:49:49 +02:00
2026-05-30 01:49:49 +02:00
2026-05-30 01:49:49 +02:00
2023-05-19 08:16:05 +12:00