1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-13 19:28:41 -04:00

Demod Analyzer plugin: channel selection via api

Problem: It's not possible to select channel in Demod Analyzer feature
via api.

Solution:
Add new "action" into
POST /sdrangel/featureset/feature/{featureIndex}/actions
endpoint
This commit is contained in:
Anton Kotenko
2024-01-21 13:47:07 +01:00
parent 9bfeddfea5
commit 3a6fb11a4c
15 changed files with 339 additions and 3 deletions
+6
View File
@@ -27,6 +27,7 @@
#include <boost/lexical_cast.hpp>
#include "SWGDemodAnalyzerActions.h"
#include "httpdocrootsettings.h"
#include "webapirequestmapper.h"
#include "webapiutils.h"
@@ -5375,6 +5376,11 @@ bool WebAPIRequestMapper::getFeatureActions(
featureActions->setVorLocalizerActions(new SWGSDRangel::SWGVORLocalizerActions());
featureActions->getVorLocalizerActions()->fromJsonObject(actionsJsonObject);
}
else if (featureActionsKey == "DemodAnalyzerActions")
{
featureActions->setDemodAnalyzerActions(new SWGSDRangel::SWGDemodAnalyzerActions());
featureActions->getDemodAnalyzerActions()->fromJsonObject(actionsJsonObject);
}
else
{
return false;