From b41bc373ad472a25f08182c87a8b2cbdbde5c1db Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 6 Jan 2026 15:38:28 +0000 Subject: [PATCH] Add Inmarsat Demod to WebAPI --- sdrbase/webapi/webapirequestmapper.cpp | 8 ++++++++ sdrbase/webapi/webapiutils.cpp | 1 + 2 files changed, 9 insertions(+) diff --git a/sdrbase/webapi/webapirequestmapper.cpp b/sdrbase/webapi/webapirequestmapper.cpp index bd501385a..edc59c566 100644 --- a/sdrbase/webapi/webapirequestmapper.cpp +++ b/sdrbase/webapi/webapirequestmapper.cpp @@ -4595,6 +4595,12 @@ bool WebAPIRequestMapper::getChannelSettings( channelSettings->getIlsDemodSettings()->init(); channelSettings->getIlsDemodSettings()->fromJsonObject(settingsJsonObject); } + else if (channelSettingsKey == "InmarsatDemodSettings") + { + channelSettings->setInmarsatDemodSettings(new SWGSDRangel::SWGInmarsatDemodSettings()); + channelSettings->getInmarsatDemodSettings()->init(); + channelSettings->getInmarsatDemodSettings()->fromJsonObject(settingsJsonObject); + } else if (channelSettingsKey == "InterferometerSettings") { channelSettings->setInterferometerSettings(new SWGSDRangel::SWGInterferometerSettings()); @@ -5565,6 +5571,7 @@ void WebAPIRequestMapper::resetChannelSettings(SWGSDRangel::SWGChannelSettings& channelSettings.setHeatMapSettings(nullptr); channelSettings.setIeee802154ModSettings(nullptr); channelSettings.setIlsDemodSettings(nullptr); + channelSettings.setInmarsatDemodSettings(nullptr); channelSettings.setNavtexDemodSettings(nullptr); channelSettings.setNfmDemodSettings(nullptr); channelSettings.setNfmModSettings(nullptr); @@ -5610,6 +5617,7 @@ void WebAPIRequestMapper::resetChannelReport(SWGSDRangel::SWGChannelReport& chan channelReport.setFreqTrackerReport(nullptr); channelReport.setHeatMapReport(nullptr); channelReport.setIlsDemodReport(nullptr); + channelReport.setInmarsatDemodReport(nullptr); channelReport.setNavtexDemodReport(nullptr); channelReport.setNfmDemodReport(nullptr); channelReport.setNfmModReport(nullptr); diff --git a/sdrbase/webapi/webapiutils.cpp b/sdrbase/webapi/webapiutils.cpp index 5babcc316..920828454 100644 --- a/sdrbase/webapi/webapiutils.cpp +++ b/sdrbase/webapi/webapiutils.cpp @@ -53,6 +53,7 @@ const QMap WebAPIUtils::m_channelURIToSettingsKey = { {"sdrangel.channel.freqtracker", "FreqTrackerSettings"}, {"sdrangel.channel.heatmap", "HeatMapSettings"}, {"sdrangel.channel.ilsdemod", "ILSDemodSettings"}, + {"sdrangel.channel.inmarsatdemod", "InmarsatDemodSettings"}, {"sdrangel.channel.navtexemod", "NavtexDemodSettings"}, {"sdrangel.channel.m17demod", "M17DemodSettings"}, {"sdrangel.channeltx.modm17", "M17ModSettings"},