mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-12 19:42:34 -04:00
DATV demod: pass symbol rate in report
This commit is contained in:
parent
002f5e8af3
commit
de4147b853
@ -576,6 +576,7 @@ void DATVDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& respons
|
||||
response.getDatvDemodReport()->setChannelPowerDb(CalcDb::dbPower(magsq));
|
||||
response.getDatvDemodReport()->setAudioActive(audioActive() ? 1 : 0);
|
||||
response.getDatvDemodReport()->setAudioDecodeOk(audioDecodeOK() ? 1 : 0);
|
||||
response.getDatvDemodReport()->setSymbolRate(m_settings.m_symbolRate); // This is repeated from settings for convenience
|
||||
response.getDatvDemodReport()->setModcodCodeRate(getModcodCodeRate());
|
||||
response.getDatvDemodReport()->setModcodModulation(getModcodModulation());
|
||||
response.getDatvDemodReport()->setSetByModcod(isCstlnSetByModcod() ? 1 : 0);
|
||||
|
@ -4877,6 +4877,10 @@ margin-bottom: 20px;
|
||||
"type" : "integer",
|
||||
"description" : "UDP thread (1 running, 0 idle)"
|
||||
},
|
||||
"symbolRate" : {
|
||||
"type" : "integer",
|
||||
"description" : "Symbol rate in symbols per second - repeated from settings for convenience\n"
|
||||
},
|
||||
"modcodModulation" : {
|
||||
"type" : "integer",
|
||||
"description" : "Modulation set by DVB-S2 MODCOD\n * -1: Unset\n * 0: BPSK\n * 1: QPSK\n * 2: PSK8\n * 3: APSK16\n * 4: APSK32\n * 5: APSK64E\n * 6: QAM16\n * 7: QAM64\n * 8: QAM256\n"
|
||||
@ -59468,7 +59472,7 @@ except ApiException as e:
|
||||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2025-05-03T03:12:21.688+02:00
|
||||
Generated 2025-05-03T17:59:40.379+02:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -145,6 +145,10 @@ DATVDemodReport:
|
||||
udpRunning:
|
||||
description: UDP thread (1 running, 0 idle)
|
||||
type: integer
|
||||
symbolRate:
|
||||
type: integer
|
||||
description: >
|
||||
Symbol rate in symbols per second - repeated from settings for convenience
|
||||
modcodModulation:
|
||||
type: integer
|
||||
description: >
|
||||
|
@ -145,6 +145,10 @@ DATVDemodReport:
|
||||
udpRunning:
|
||||
description: UDP thread (1 running, 0 idle)
|
||||
type: integer
|
||||
symbolRate:
|
||||
type: integer
|
||||
description: >
|
||||
Symbol rate in symbols per second - repeated from settings for convenience
|
||||
modcodModulation:
|
||||
type: integer
|
||||
description: >
|
||||
|
@ -4877,6 +4877,10 @@ margin-bottom: 20px;
|
||||
"type" : "integer",
|
||||
"description" : "UDP thread (1 running, 0 idle)"
|
||||
},
|
||||
"symbolRate" : {
|
||||
"type" : "integer",
|
||||
"description" : "Symbol rate in symbols per second - repeated from settings for convenience\n"
|
||||
},
|
||||
"modcodModulation" : {
|
||||
"type" : "integer",
|
||||
"description" : "Modulation set by DVB-S2 MODCOD\n * -1: Unset\n * 0: BPSK\n * 1: QPSK\n * 2: PSK8\n * 3: APSK16\n * 4: APSK32\n * 5: APSK64E\n * 6: QAM16\n * 7: QAM64\n * 8: QAM256\n"
|
||||
@ -59468,7 +59472,7 @@ except ApiException as e:
|
||||
</div>
|
||||
<div id="generator">
|
||||
<div class="content">
|
||||
Generated 2025-05-03T03:12:21.688+02:00
|
||||
Generated 2025-05-03T17:59:40.379+02:00
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -40,6 +40,8 @@ SWGDATVDemodReport::SWGDATVDemodReport() {
|
||||
m_video_decode_ok_isSet = false;
|
||||
udp_running = 0;
|
||||
m_udp_running_isSet = false;
|
||||
symbol_rate = 0;
|
||||
m_symbol_rate_isSet = false;
|
||||
modcod_modulation = 0;
|
||||
m_modcod_modulation_isSet = false;
|
||||
modcod_code_rate = 0;
|
||||
@ -70,6 +72,8 @@ SWGDATVDemodReport::init() {
|
||||
m_video_decode_ok_isSet = false;
|
||||
udp_running = 0;
|
||||
m_udp_running_isSet = false;
|
||||
symbol_rate = 0;
|
||||
m_symbol_rate_isSet = false;
|
||||
modcod_modulation = 0;
|
||||
m_modcod_modulation_isSet = false;
|
||||
modcod_code_rate = 0;
|
||||
@ -95,6 +99,7 @@ SWGDATVDemodReport::cleanup() {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
SWGDATVDemodReport*
|
||||
@ -120,6 +125,8 @@ SWGDATVDemodReport::fromJsonObject(QJsonObject &pJson) {
|
||||
|
||||
::SWGSDRangel::setValue(&udp_running, pJson["udpRunning"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&symbol_rate, pJson["symbolRate"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&modcod_modulation, pJson["modcodModulation"], "qint32", "");
|
||||
|
||||
::SWGSDRangel::setValue(&modcod_code_rate, pJson["modcodCodeRate"], "qint32", "");
|
||||
@ -164,6 +171,9 @@ SWGDATVDemodReport::asJsonObject() {
|
||||
if(m_udp_running_isSet){
|
||||
obj->insert("udpRunning", QJsonValue(udp_running));
|
||||
}
|
||||
if(m_symbol_rate_isSet){
|
||||
obj->insert("symbolRate", QJsonValue(symbol_rate));
|
||||
}
|
||||
if(m_modcod_modulation_isSet){
|
||||
obj->insert("modcodModulation", QJsonValue(modcod_modulation));
|
||||
}
|
||||
@ -243,6 +253,16 @@ SWGDATVDemodReport::setUdpRunning(qint32 udp_running) {
|
||||
this->m_udp_running_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGDATVDemodReport::getSymbolRate() {
|
||||
return symbol_rate;
|
||||
}
|
||||
void
|
||||
SWGDATVDemodReport::setSymbolRate(qint32 symbol_rate) {
|
||||
this->symbol_rate = symbol_rate;
|
||||
this->m_symbol_rate_isSet = true;
|
||||
}
|
||||
|
||||
qint32
|
||||
SWGDATVDemodReport::getModcodModulation() {
|
||||
return modcod_modulation;
|
||||
@ -316,6 +336,9 @@ SWGDATVDemodReport::isSet(){
|
||||
if(m_udp_running_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_symbol_rate_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
if(m_modcod_modulation_isSet){
|
||||
isObjectUpdated = true; break;
|
||||
}
|
||||
|
@ -59,6 +59,9 @@ public:
|
||||
qint32 getUdpRunning();
|
||||
void setUdpRunning(qint32 udp_running);
|
||||
|
||||
qint32 getSymbolRate();
|
||||
void setSymbolRate(qint32 symbol_rate);
|
||||
|
||||
qint32 getModcodModulation();
|
||||
void setModcodModulation(qint32 modcod_modulation);
|
||||
|
||||
@ -96,6 +99,9 @@ private:
|
||||
qint32 udp_running;
|
||||
bool m_udp_running_isSet;
|
||||
|
||||
qint32 symbol_rate;
|
||||
bool m_symbol_rate_isSet;
|
||||
|
||||
qint32 modcod_modulation;
|
||||
bool m_modcod_modulation_isSet;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user