mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-29 23:28:39 -05:00
Fix/add FMS as temporary FM-Stereo mode
This commit is contained in:
parent
5f6b492478
commit
bb62fd1999
@ -68,11 +68,12 @@ AppFrame::AppFrame() :
|
|||||||
|
|
||||||
demodModeSelector = new ModeSelectorCanvas(demodPanel, attribList);
|
demodModeSelector = new ModeSelectorCanvas(demodPanel, attribList);
|
||||||
demodModeSelector->addChoice(0, "FM");
|
demodModeSelector->addChoice(0, "FM");
|
||||||
demodModeSelector->addChoice(1, "AM");
|
demodModeSelector->addChoice(1, "FMS");
|
||||||
demodModeSelector->addChoice(2, "LSB");
|
demodModeSelector->addChoice(2, "AM");
|
||||||
demodModeSelector->addChoice(3, "USB");
|
demodModeSelector->addChoice(3, "LSB");
|
||||||
demodModeSelector->addChoice(4, "DSB");
|
demodModeSelector->addChoice(4, "USB");
|
||||||
demodModeSelector->addChoice(5, "I/Q");
|
demodModeSelector->addChoice(5, "DSB");
|
||||||
|
demodModeSelector->addChoice(6, "I/Q");
|
||||||
demodModeSelector->setSelection("FM");
|
demodModeSelector->setSelection("FM");
|
||||||
demodModeSelector->setHelpTip("Choose modulation type: Frequency Modulation, Amplitude Modulation and Lower, Upper or Double Side-Band.");
|
demodModeSelector->setHelpTip("Choose modulation type: Frequency Modulation, Amplitude Modulation and Lower, Upper or Double Side-Band.");
|
||||||
demodTray->Add(demodModeSelector, 2, wxEXPAND | wxALL, 0);
|
demodTray->Add(demodModeSelector, 2, wxEXPAND | wxALL, 0);
|
||||||
|
@ -165,7 +165,7 @@ bool CubicSDR::OnInit() {
|
|||||||
wxApp::SetAppName("CubicSDR");
|
wxApp::SetAppName("CubicSDR");
|
||||||
|
|
||||||
Modem::addModemFactory("FM", new ModemFM);
|
Modem::addModemFactory("FM", new ModemFM);
|
||||||
Modem::addModemFactory("WBFM", new ModemFMStereo);
|
Modem::addModemFactory("FMS", new ModemFMStereo);
|
||||||
Modem::addModemFactory("AM", new ModemAM);
|
Modem::addModemFactory("AM", new ModemAM);
|
||||||
Modem::addModemFactory("LSB", new ModemLSB);
|
Modem::addModemFactory("LSB", new ModemLSB);
|
||||||
Modem::addModemFactory("USB", new ModemUSB);
|
Modem::addModemFactory("USB", new ModemUSB);
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#include "ModemFMStereo.h"
|
#include "ModemFMStereo.h"
|
||||||
|
|
||||||
ModemFMStereo::ModemFMStereo() {
|
ModemFMStereo::ModemFMStereo() {
|
||||||
|
demodFM = freqdem_create(0.5);
|
||||||
|
|
||||||
firStereoR2C = firhilbf_create(5, 60.0f);
|
firStereoR2C = firhilbf_create(5, 60.0f);
|
||||||
firStereoC2R = firhilbf_create(5, 60.0f);
|
firStereoC2R = firhilbf_create(5, 60.0f);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user