From 93fbe8a05631f390a0ba816c103f430ef3c736dc Mon Sep 17 00:00:00 2001 From: Werner Date: Wed, 30 Oct 2024 20:44:48 +0100 Subject: [PATCH] CHG: Added 'nicam.invert_spectrum' setting --- baseband/baseband.py | 2 +- baseband/settings.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/baseband/baseband.py b/baseband/baseband.py index d391fa2..1706d6e 100644 --- a/baseband/baseband.py +++ b/baseband/baseband.py @@ -206,7 +206,7 @@ def dump_settings(settings: SETTINGS) -> None: f' generator_level_ch1={settings.nicam.generator_level_ch1}, generator_level_ch2={settings.nicam.generator_level_ch2},' f' generator_ena_ch1={settings.nicam.generator_ena_ch1}, generator_ena_ch2={settings.nicam.generator_ena_ch2},\n' f' rf_frequency_khz={settings.nicam.rf_frequency_khz} kHz, rf_level={settings.nicam.rf_level},' - f' nicam_bandwidth={NICAM_BANDWIDTH(settings.nicam.nicam_bandwidth).name}, enable={settings.nicam.enable}') + f' nicam_bandwidth={NICAM_BANDWIDTH(settings.nicam.nicam_bandwidth).name}, invert_spectrum={settings.nicam.invert_spectrum} enable={settings.nicam.enable}') print(f'FM settings:') for i in range(0, 4): print(f' {i}: rf_frequency_khz={settings.fm[i].rf_frequency_khz} kHz,' diff --git a/baseband/settings.py b/baseband/settings.py index 001586b..b4b10e8 100644 --- a/baseband/settings.py +++ b/baseband/settings.py @@ -82,7 +82,8 @@ class NICAM_SETTINGS(Structure): ("generator_ena_ch1", c_uint8, 1), ("generator_ena_ch2", c_uint8, 1), ("nicam_bandwidth", c_uint8, 1), - ("enable", c_uint8, 1) + ("enable", c_uint8, 1), + ("invert_spectrum", c_uint8, 1) ]