Skip to content

Commit

Permalink
WDSP receiver: added to Web API mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
f4exb committed Jul 12, 2024
1 parent 80b2370 commit 7f96082
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 9 additions & 3 deletions sdrbase/webapi/webapirequestmapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4562,19 +4562,19 @@ bool WebAPIRequestMapper::getChannelSettings(
else if (channelSettingsKey == "FreqScannerSettings")
{
channelSettings->setFreqScannerSettings(new SWGSDRangel::SWGFreqScannerSettings());
channelSettings->getFreqScannerSettings()->init();
channelSettings->getFreqScannerSettings()->init();
channelSettings->getFreqScannerSettings()->fromJsonObject(settingsJsonObject);
}
else if (channelSettingsKey == "FreqTrackerSettings")
{
channelSettings->setFreqTrackerSettings(new SWGSDRangel::SWGFreqTrackerSettings());
channelSettings->getFreqTrackerSettings()->init();
channelSettings->getFreqTrackerSettings()->init();
channelSettings->getFreqTrackerSettings()->fromJsonObject(settingsJsonObject);
}
else if (channelSettingsKey == "FT8DemodSettings")
{
channelSettings->setFt8DemodSettings(new SWGSDRangel::SWGFT8DemodSettings());
channelSettings->getFt8DemodSettings()->init();
channelSettings->getFt8DemodSettings()->init();
channelSettings->getFt8DemodSettings()->fromJsonObject(settingsJsonObject);
}
else if (channelSettingsKey == "HeatMapSettings")
Expand Down Expand Up @@ -4774,6 +4774,12 @@ bool WebAPIRequestMapper::getChannelSettings(
channelSettings->getWfmModSettings()->init();
channelSettings->getWfmModSettings()->fromJsonObject(settingsJsonObject);
}
else if (channelSettingsKey == "WDSPRxSettings")
{
channelSettings->setWdspRxSettings(new SWGSDRangel::SWGWDSPRxSettings());
channelSettings->getWdspRxSettings()->init();
channelSettings->getWdspRxSettings()->fromJsonObject(settingsJsonObject);
}
else
{
return false;
Expand Down
2 changes: 2 additions & 0 deletions sdrbase/webapi/webapiutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const QMap<QString, QString> WebAPIUtils::m_channelURIToSettingsKey = {
{"sdrangel.channel.rttymod", "RTTYModSettings"},
{"sdrangel.channeltx.modssb", "SSBModSettings"},
{"sdrangel.channel.ssbdemod", "SSBDemodSettings"},
{"sdrangel.channel.wdsprx", "WDSPRxSettings"},
{"sdrangel.channel.ft8demod", "FT8DemodSettings"},
{"de.maintech.sdrangelove.channel.ssb", "SSBDemodSettings"}, // remap
{"sdrangel.channel.radioastronomy", "RadioAstronomySettings"},
Expand Down Expand Up @@ -199,6 +200,7 @@ const QMap<QString, QString> WebAPIUtils::m_channelTypeToSettingsKey = {
{"RTTYMod", "RTTYModSettings"},
{"SSBMod", "SSBModSettings"},
{"SSBDemod", "SSBDemodSettings"},
{"WDSPRx", "WDSPRxSettings"},
{"FT8Demod", "FT8DemodSettings"},
{"UDPSink", "UDPSinkSettings"},
{"UDPSource", "UDPSourceSettings"},
Expand Down

0 comments on commit 7f96082

Please sign in to comment.