mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-09 15:12:35 -04:00
Invest limit bw ssb to 3 k (#2188)
* Adding_TX_BW_user_selection_to_the_Mic_SSB_mode * TX_SSB_BW_adjustm_2k_3k_4k * init_value_correction * Comment_correction * Leaving_only_OK_txbw_SSB_2K_3K * Limti_SSB_TX_BW_2K_3K
This commit is contained in:
parent
b53b5c70d3
commit
032168234a
7 changed files with 73 additions and 18 deletions
|
@ -113,13 +113,27 @@ void MicTXProcessor::on_message(const Message* const msg) {
|
|||
}
|
||||
|
||||
if (usb_enabled) {
|
||||
modulator = new dsp::modulate::SSB();
|
||||
modulator->set_mode(dsp::modulate::Mode::USB);
|
||||
dsp::modulate::SSB* ssb = new dsp::modulate::SSB();
|
||||
|
||||
// Config fs_div_factor private var inside DSP modulate.cpp
|
||||
ssb->set_fs_div_factor(config_message.deviation_hz); // we use same FM var deviation_hz , to set up also SSB BW
|
||||
ssb->set_mode(dsp::modulate::Mode::USB);
|
||||
modulator = ssb;
|
||||
|
||||
// modulator = new dsp::modulate::SSB(); // Keeping previous code as ref., when not passing deviation_hz parameter.
|
||||
// modulator->set_mode(dsp::modulate::Mode::USB);
|
||||
}
|
||||
|
||||
if (lsb_enabled) {
|
||||
modulator = new dsp::modulate::SSB();
|
||||
modulator->set_mode(dsp::modulate::Mode::LSB);
|
||||
dsp::modulate::SSB* ssb = new dsp::modulate::SSB();
|
||||
|
||||
// Config fs_div_factor private var inside DSP modulate.cpp
|
||||
ssb->set_fs_div_factor(config_message.deviation_hz); // we use same FM var deviation_hz , to set up also SSB BW
|
||||
ssb->set_mode(dsp::modulate::Mode::LSB);
|
||||
modulator = ssb;
|
||||
|
||||
// modulator = new dsp::modulate::SSB(); // Keeping previous code as ref., when not passing deviation_hz parameter.
|
||||
// modulator->set_mode(dsp::modulate::Mode::LSB);
|
||||
}
|
||||
if (am_enabled) {
|
||||
modulator = new dsp::modulate::AM();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue