MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / cmdPC

Method cmdPC

src/core/SmartCatProtocol.cpp:749–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747// ── PC / ZZPC — RF power drive level (0-100, 3-digit) ───────────────────────
748
749QString SmartCatProtocol::cmdPC(const QString& arg)
750{
751 TransmitModel& tx = m_model->transmitModel();
752 if (arg.isEmpty())
753 return "PC" + fmt3(tx.rfPower()) + ";";
754 bool ok;
755 int v = arg.toInt(&ok);
756 if (!ok || v < 0 || v > 100) return "?;";
757 tx.setRfPower(v);
758 return {};
759}
760
761QString SmartCatProtocol::cmdZZPC(const QString& arg)
762{

Callers

nothing calls this directly

Calls 4

fmt3Function · 0.85
rfPowerMethod · 0.80
setRfPowerMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected