Skip to content

Commit

Permalink
CHG: Added 'nicam.invert_spectrum' setting
Browse files Browse the repository at this point in the history
  • Loading branch information
pe1obw committed Oct 30, 2024
1 parent 4f3a099 commit 93fbe8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion baseband/baseband.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,'
Expand Down
3 changes: 2 additions & 1 deletion baseband/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]


Expand Down

0 comments on commit 93fbe8a

Please sign in to comment.