add PLI/PLC/PLM to manual transponder selection

Origin commit data
------------------
Commit: 15e49f9d02
Author: TangoCash <eric@loxat.de>
Date: 2017-12-04 (Mon, 04 Dec 2017)
This commit is contained in:
TangoCash
2017-12-04 09:46:04 +01:00
committed by Thilo Graf
parent 85e3ceacde
commit edf15b92b6
2 changed files with 18 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ public:
void ddump(std::string label = "tp");
static char pol(unsigned char pol);
std::string description(void);
std::string getPLSMode(const uint8_t pls_mode);
delivery_system_t getDelSys(void) { return feparams.delsys; }
t_transport_stream_id getTransportStreamId(void) { return transport_stream_id; }

View File

@@ -215,7 +215,7 @@ std::string transponder::description()
if (CFrontend::isSat(feparams.delsys)) {
CFrontend::getDelSys(feparams.delsys, getFEParams()->fec_inner, getFEParams()->modulation, f, s, m);
snprintf(buf, sizeof(buf), "%d %c %d %s %s %s ", getFEParams()->frequency/1000, pol(getFEParams()->polarization), getFEParams()->symbol_rate/1000, f, s, m);
snprintf(buf, sizeof(buf), "%d %c %d %s %s %s (%d/%d/%s)", getFEParams()->frequency/1000, pol(getFEParams()->polarization), getFEParams()->symbol_rate/1000, f, s, m, getFEParams()->plp_id, getFEParams()->pls_code, getPLSMode(getFEParams()->pls_mode).c_str());
} else if (CFrontend::isCable(feparams.delsys)) {
CFrontend::getDelSys(feparams.delsys, getFEParams()->fec_inner, getFEParams()->modulation, f, s, m);
snprintf(buf, sizeof(buf), "%d %d %s %s %s ", getFEParams()->frequency/1000, getFEParams()->symbol_rate/1000, f, s, m);
@@ -227,3 +227,19 @@ std::string transponder::description()
return std::string(buf);
}
std::string transponder::getPLSMode(const uint8_t pls_mode)
{
switch (pls_mode) {
case 0x00:
return "Root";
case 0x01:
return "Gold";
case 0x02:
return "Combo";
case 0x03:
return "Unknown";
default:
return "Root";
}
}