mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-10 18:43:28 -05:00
WDSP receiver: added to Web API mapper
This commit is contained in:
parent
80b2370bc3
commit
7f960824f5
@ -4562,19 +4562,19 @@ bool WebAPIRequestMapper::getChannelSettings(
|
|||||||
else if (channelSettingsKey == "FreqScannerSettings")
|
else if (channelSettingsKey == "FreqScannerSettings")
|
||||||
{
|
{
|
||||||
channelSettings->setFreqScannerSettings(new SWGSDRangel::SWGFreqScannerSettings());
|
channelSettings->setFreqScannerSettings(new SWGSDRangel::SWGFreqScannerSettings());
|
||||||
channelSettings->getFreqScannerSettings()->init();
|
channelSettings->getFreqScannerSettings()->init();
|
||||||
channelSettings->getFreqScannerSettings()->fromJsonObject(settingsJsonObject);
|
channelSettings->getFreqScannerSettings()->fromJsonObject(settingsJsonObject);
|
||||||
}
|
}
|
||||||
else if (channelSettingsKey == "FreqTrackerSettings")
|
else if (channelSettingsKey == "FreqTrackerSettings")
|
||||||
{
|
{
|
||||||
channelSettings->setFreqTrackerSettings(new SWGSDRangel::SWGFreqTrackerSettings());
|
channelSettings->setFreqTrackerSettings(new SWGSDRangel::SWGFreqTrackerSettings());
|
||||||
channelSettings->getFreqTrackerSettings()->init();
|
channelSettings->getFreqTrackerSettings()->init();
|
||||||
channelSettings->getFreqTrackerSettings()->fromJsonObject(settingsJsonObject);
|
channelSettings->getFreqTrackerSettings()->fromJsonObject(settingsJsonObject);
|
||||||
}
|
}
|
||||||
else if (channelSettingsKey == "FT8DemodSettings")
|
else if (channelSettingsKey == "FT8DemodSettings")
|
||||||
{
|
{
|
||||||
channelSettings->setFt8DemodSettings(new SWGSDRangel::SWGFT8DemodSettings());
|
channelSettings->setFt8DemodSettings(new SWGSDRangel::SWGFT8DemodSettings());
|
||||||
channelSettings->getFt8DemodSettings()->init();
|
channelSettings->getFt8DemodSettings()->init();
|
||||||
channelSettings->getFt8DemodSettings()->fromJsonObject(settingsJsonObject);
|
channelSettings->getFt8DemodSettings()->fromJsonObject(settingsJsonObject);
|
||||||
}
|
}
|
||||||
else if (channelSettingsKey == "HeatMapSettings")
|
else if (channelSettingsKey == "HeatMapSettings")
|
||||||
@ -4774,6 +4774,12 @@ bool WebAPIRequestMapper::getChannelSettings(
|
|||||||
channelSettings->getWfmModSettings()->init();
|
channelSettings->getWfmModSettings()->init();
|
||||||
channelSettings->getWfmModSettings()->fromJsonObject(settingsJsonObject);
|
channelSettings->getWfmModSettings()->fromJsonObject(settingsJsonObject);
|
||||||
}
|
}
|
||||||
|
else if (channelSettingsKey == "WDSPRxSettings")
|
||||||
|
{
|
||||||
|
channelSettings->setWdspRxSettings(new SWGSDRangel::SWGWDSPRxSettings());
|
||||||
|
channelSettings->getWdspRxSettings()->init();
|
||||||
|
channelSettings->getWdspRxSettings()->fromJsonObject(settingsJsonObject);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -77,6 +77,7 @@ const QMap<QString, QString> WebAPIUtils::m_channelURIToSettingsKey = {
|
|||||||
{"sdrangel.channel.rttymod", "RTTYModSettings"},
|
{"sdrangel.channel.rttymod", "RTTYModSettings"},
|
||||||
{"sdrangel.channeltx.modssb", "SSBModSettings"},
|
{"sdrangel.channeltx.modssb", "SSBModSettings"},
|
||||||
{"sdrangel.channel.ssbdemod", "SSBDemodSettings"},
|
{"sdrangel.channel.ssbdemod", "SSBDemodSettings"},
|
||||||
|
{"sdrangel.channel.wdsprx", "WDSPRxSettings"},
|
||||||
{"sdrangel.channel.ft8demod", "FT8DemodSettings"},
|
{"sdrangel.channel.ft8demod", "FT8DemodSettings"},
|
||||||
{"de.maintech.sdrangelove.channel.ssb", "SSBDemodSettings"}, // remap
|
{"de.maintech.sdrangelove.channel.ssb", "SSBDemodSettings"}, // remap
|
||||||
{"sdrangel.channel.radioastronomy", "RadioAstronomySettings"},
|
{"sdrangel.channel.radioastronomy", "RadioAstronomySettings"},
|
||||||
@ -199,6 +200,7 @@ const QMap<QString, QString> WebAPIUtils::m_channelTypeToSettingsKey = {
|
|||||||
{"RTTYMod", "RTTYModSettings"},
|
{"RTTYMod", "RTTYModSettings"},
|
||||||
{"SSBMod", "SSBModSettings"},
|
{"SSBMod", "SSBModSettings"},
|
||||||
{"SSBDemod", "SSBDemodSettings"},
|
{"SSBDemod", "SSBDemodSettings"},
|
||||||
|
{"WDSPRx", "WDSPRxSettings"},
|
||||||
{"FT8Demod", "FT8DemodSettings"},
|
{"FT8Demod", "FT8DemodSettings"},
|
||||||
{"UDPSink", "UDPSinkSettings"},
|
{"UDPSink", "UDPSinkSettings"},
|
||||||
{"UDPSource", "UDPSourceSettings"},
|
{"UDPSource", "UDPSourceSettings"},
|
||||||
|
Loading…
Reference in New Issue
Block a user