diff --git a/plugins/channelrx/demodvor/vordemodwebapiadapter.cpp b/plugins/channelrx/demodvor/vordemodwebapiadapter.cpp
index ee8d54ef7..79be603db 100644
--- a/plugins/channelrx/demodvor/vordemodwebapiadapter.cpp
+++ b/plugins/channelrx/demodvor/vordemodwebapiadapter.cpp
@@ -44,6 +44,7 @@ int VORDemodWebAPIAdapter::webapiSettingsPutPatch(
SWGSDRangel::SWGChannelSettings& response,
QString& errorMessage)
{
+ (void) force;
(void) errorMessage;
VORDemod::webapiUpdateChannelSettings(m_settings, channelSettingsKeys, response);
diff --git a/sdrbase/resources/webapi.qrc b/sdrbase/resources/webapi.qrc
index 79f167f6d..f172d97d0 100644
--- a/sdrbase/resources/webapi.qrc
+++ b/sdrbase/resources/webapi.qrc
@@ -83,6 +83,7 @@
webapi/doc/swagger/include/UDPSink.yaml
webapi/doc/swagger/include/User.yaml
webapi/doc/swagger/include/USRP.yaml
+ webapi/doc/swagger/include/VORDemod.yaml
webapi/doc/swagger/include/WFMDemod.yaml
webapi/doc/swagger/include/WFMMod.yaml
webapi/doc/swagger/include/Xtrx.yaml
diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html
index 78b316629..b35e94c0f 100644
--- a/sdrbase/resources/webapi/doc/html2/index.html
+++ b/sdrbase/resources/webapi/doc/html2/index.html
@@ -2570,6 +2570,9 @@ margin-bottom: 20px;
"UDPSinkReport" : {
"$ref" : "#/definitions/UDPSinkReport"
},
+ "VORDemodReport" : {
+ "$ref" : "#/definitions/VORDemodReport"
+ },
"WFMDemodReport" : {
"$ref" : "#/definitions/WFMDemodReport"
},
@@ -2692,6 +2695,9 @@ margin-bottom: 20px;
"UDPSinkSettings" : {
"$ref" : "#/definitions/UDPSinkSettings"
},
+ "VORDemodSettings" : {
+ "$ref" : "#/definitions/VORDemodSettings"
+ },
"WFMDemodSettings" : {
"$ref" : "#/definitions/WFMDemodSettings"
},
@@ -9427,6 +9433,77 @@ margin-bottom: 20px;
}
},
"description" : "USRP"
+};
+ defs.VORDemodReport = {
+ "properties" : {
+ "channelPowerDB" : {
+ "type" : "number",
+ "format" : "float",
+ "description" : "power received in channel (dB)"
+ },
+ "squelch" : {
+ "type" : "integer",
+ "description" : "squelch status (1 if open else 0)"
+ },
+ "audioSampleRate" : {
+ "type" : "integer"
+ }
+ },
+ "description" : "VORDemod"
+};
+ defs.VORDemodSettings = {
+ "properties" : {
+ "squelch" : {
+ "type" : "number",
+ "format" : "float",
+ "description" : "power squelch threshold in decibels"
+ },
+ "volume" : {
+ "type" : "number",
+ "format" : "float"
+ },
+ "audioMute" : {
+ "type" : "integer"
+ },
+ "rgbColor" : {
+ "type" : "integer"
+ },
+ "title" : {
+ "type" : "string"
+ },
+ "audioDeviceName" : {
+ "type" : "string"
+ },
+ "streamIndex" : {
+ "type" : "integer",
+ "description" : "MIMO channel. Not relevant when connected to SI (single Rx)."
+ },
+ "useReverseAPI" : {
+ "type" : "integer",
+ "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
+ },
+ "reverseAPIAddress" : {
+ "type" : "string"
+ },
+ "reverseAPIPort" : {
+ "type" : "integer"
+ },
+ "reverseAPIDeviceIndex" : {
+ "type" : "integer"
+ },
+ "reverseAPIChannelIndex" : {
+ "type" : "integer"
+ },
+ "identThreshold" : {
+ "type" : "integer",
+ "description" : "Morse code ident threshold (linear SNR)"
+ },
+ "magDecAdjust" : {
+ "type" : "integer",
+ "description" : "Adjust radial lines on map for magnetic declination of VOR"
+ }
+ },
+ "description" : "VORDemod"
};
defs.WFMDemodReport = {
"properties" : {
@@ -44629,7 +44706,7 @@ except ApiException as e:
- Generated 2020-11-21T10:29:19.215+01:00
+ Generated 2020-11-24T20:20:00.458+01:00
diff --git a/sdrbase/resources/webapi/doc/swagger/include/ChannelReport.yaml b/sdrbase/resources/webapi/doc/swagger/include/ChannelReport.yaml
index 3a8a51be9..8750312e5 100644
--- a/sdrbase/resources/webapi/doc/swagger/include/ChannelReport.yaml
+++ b/sdrbase/resources/webapi/doc/swagger/include/ChannelReport.yaml
@@ -57,6 +57,8 @@ ChannelReport:
$ref: "/doc/swagger/include/UDPSource.yaml#/UDPSourceReport"
UDPSinkReport:
$ref: "/doc/swagger/include/UDPSink.yaml#/UDPSinkReport"
+ VORDemodReport:
+ $ref: "/doc/swagger/include/VORDemod.yaml#/VORDemodReport"
WFMDemodReport:
$ref: "/doc/swagger/include/WFMDemod.yaml#/WFMDemodReport"
WFMModReport:
diff --git a/sdrbase/resources/webapi/doc/swagger/include/ChannelSettings.yaml b/sdrbase/resources/webapi/doc/swagger/include/ChannelSettings.yaml
index f93b6d694..7bc0f861c 100644
--- a/sdrbase/resources/webapi/doc/swagger/include/ChannelSettings.yaml
+++ b/sdrbase/resources/webapi/doc/swagger/include/ChannelSettings.yaml
@@ -79,6 +79,8 @@ ChannelSettings:
$ref: "/doc/swagger/include/UDPSource.yaml#/UDPSourceSettings"
UDPSinkSettings:
$ref: "/doc/swagger/include/UDPSink.yaml#/UDPSinkSettings"
+ VORDemodSettings:
+ $ref: "/doc/swagger/include/VORDemod.yaml#/VORDemodSettings"
WFMDemodSettings:
$ref: "/doc/swagger/include/WFMDemod.yaml#/WFMDemodSettings"
WFMModSettings:
diff --git a/sdrbase/resources/webapi/doc/swagger/include/VORDemod.yaml b/sdrbase/resources/webapi/doc/swagger/include/VORDemod.yaml
new file mode 100644
index 000000000..475979a9d
--- /dev/null
+++ b/sdrbase/resources/webapi/doc/swagger/include/VORDemod.yaml
@@ -0,0 +1,51 @@
+VORDemodSettings:
+ description: VORDemod
+ properties:
+ squelch:
+ description: power squelch threshold in decibels
+ type: number
+ format: float
+ volume:
+ type: number
+ format: float
+ audioMute:
+ type: integer
+ rgbColor:
+ type: integer
+ title:
+ type: string
+ audioDeviceName:
+ type: string
+ streamIndex:
+ description: MIMO channel. Not relevant when connected to SI (single Rx).
+ type: integer
+ useReverseAPI:
+ description: Synchronize with reverse API (1 for yes, 0 for no)
+ type: integer
+ reverseAPIAddress:
+ type: string
+ reverseAPIPort:
+ type: integer
+ reverseAPIDeviceIndex:
+ type: integer
+ reverseAPIChannelIndex:
+ type: integer
+ identThreshold:
+ description: Morse code ident threshold (linear SNR)
+ type: integer
+ magDecAdjust:
+ description: Adjust radial lines on map for magnetic declination of VOR
+ type: integer
+
+VORDemodReport:
+ description: VORDemod
+ properties:
+ channelPowerDB:
+ description: power received in channel (dB)
+ type: number
+ format: float
+ squelch:
+ description: squelch status (1 if open else 0)
+ type: integer
+ audioSampleRate:
+ type: integer
diff --git a/sdrbase/util/morse.cpp b/sdrbase/util/morse.cpp
index c9a9cf59f..e7b4ebaf1 100644
--- a/sdrbase/util/morse.cpp
+++ b/sdrbase/util/morse.cpp
@@ -180,7 +180,7 @@ QString Morse::toSpacedUnicodeMorse(QString &string)
// Converts a Morse sequence to an ASCII character. -1 if no mapping found.
int Morse::toASCII(QString &morse)
{
- for (int i = 0; i < COUNT_OF(m_asciiToMorse); i++)
+ for (unsigned int i = 0; i < COUNT_OF(m_asciiToMorse); i++)
{
if (morse == m_asciiToMorse[i].morse)
return m_asciiToMorse[i].ascii;
diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html
index 78b316629..b35e94c0f 100644
--- a/swagger/sdrangel/code/html2/index.html
+++ b/swagger/sdrangel/code/html2/index.html
@@ -2570,6 +2570,9 @@ margin-bottom: 20px;
"UDPSinkReport" : {
"$ref" : "#/definitions/UDPSinkReport"
},
+ "VORDemodReport" : {
+ "$ref" : "#/definitions/VORDemodReport"
+ },
"WFMDemodReport" : {
"$ref" : "#/definitions/WFMDemodReport"
},
@@ -2692,6 +2695,9 @@ margin-bottom: 20px;
"UDPSinkSettings" : {
"$ref" : "#/definitions/UDPSinkSettings"
},
+ "VORDemodSettings" : {
+ "$ref" : "#/definitions/VORDemodSettings"
+ },
"WFMDemodSettings" : {
"$ref" : "#/definitions/WFMDemodSettings"
},
@@ -9427,6 +9433,77 @@ margin-bottom: 20px;
}
},
"description" : "USRP"
+};
+ defs.VORDemodReport = {
+ "properties" : {
+ "channelPowerDB" : {
+ "type" : "number",
+ "format" : "float",
+ "description" : "power received in channel (dB)"
+ },
+ "squelch" : {
+ "type" : "integer",
+ "description" : "squelch status (1 if open else 0)"
+ },
+ "audioSampleRate" : {
+ "type" : "integer"
+ }
+ },
+ "description" : "VORDemod"
+};
+ defs.VORDemodSettings = {
+ "properties" : {
+ "squelch" : {
+ "type" : "number",
+ "format" : "float",
+ "description" : "power squelch threshold in decibels"
+ },
+ "volume" : {
+ "type" : "number",
+ "format" : "float"
+ },
+ "audioMute" : {
+ "type" : "integer"
+ },
+ "rgbColor" : {
+ "type" : "integer"
+ },
+ "title" : {
+ "type" : "string"
+ },
+ "audioDeviceName" : {
+ "type" : "string"
+ },
+ "streamIndex" : {
+ "type" : "integer",
+ "description" : "MIMO channel. Not relevant when connected to SI (single Rx)."
+ },
+ "useReverseAPI" : {
+ "type" : "integer",
+ "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
+ },
+ "reverseAPIAddress" : {
+ "type" : "string"
+ },
+ "reverseAPIPort" : {
+ "type" : "integer"
+ },
+ "reverseAPIDeviceIndex" : {
+ "type" : "integer"
+ },
+ "reverseAPIChannelIndex" : {
+ "type" : "integer"
+ },
+ "identThreshold" : {
+ "type" : "integer",
+ "description" : "Morse code ident threshold (linear SNR)"
+ },
+ "magDecAdjust" : {
+ "type" : "integer",
+ "description" : "Adjust radial lines on map for magnetic declination of VOR"
+ }
+ },
+ "description" : "VORDemod"
};
defs.WFMDemodReport = {
"properties" : {
@@ -44629,7 +44706,7 @@ except ApiException as e:
- Generated 2020-11-21T10:29:19.215+01:00
+ Generated 2020-11-24T20:20:00.458+01:00